summaryrefslogtreecommitdiff
path: root/ext/objspace
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-21 22:19:48 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-21 22:19:48 +0000
commit6053426a669386353a6b7fe11f3d3ea8d3c11e7c (patch)
tree418a1af65cf1bdf539c6af8d60c10e5a6a360cba /ext/objspace
parent331fb4a2b3576ee364dc67f212b3c9c759fafdd8 (diff)
* ext/objspace/objspace.c (total_i): no need to skip singleton classes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/objspace')
-rw-r--r--ext/objspace/objspace.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/ext/objspace/objspace.c b/ext/objspace/objspace.c
index 7d46183..352380d 100644
--- a/ext/objspace/objspace.c
+++ b/ext/objspace/objspace.c
@@ -61,9 +61,6 @@ total_i(void *vstart, void *vend, size_t stride, void *ptr)
case T_NODE:
case T_ZOMBIE:
continue;
- case T_CLASS:
- if (FL_TEST(v, FL_SINGLETON))
- continue;
default:
if (data->klass == 0 || rb_obj_is_kind_of(v, data->klass)) {
data->total += rb_obj_memsize_of(v);