ruby-changes:39245
From: ko1 <ko1@a...>
Date: Wed, 22 Jul 2015 07:23:11 +0900 (JST)
Subject: [ruby-changes:39245] ko1:r51326 (trunk): * ext/objspace/objspace.c (total_i): no need to skip singleton classes.
ko1 2015-07-22 07:19:48 +0900 (Wed, 22 Jul 2015) New Revision: 51326 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51326 Log: * ext/objspace/objspace.c (total_i): no need to skip singleton classes. Modified files: trunk/ChangeLog trunk/ext/objspace/objspace.c Index: ChangeLog =================================================================== --- ChangeLog (revision 51325) +++ ChangeLog (revision 51326) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Jul 22 07:15:33 2015 Koichi Sasada <ko1@a...> + + * ext/objspace/objspace.c (total_i): no need to skip singleton classes. + Wed Jul 22 06:37:54 2015 Koichi Sasada <ko1@a...> * vm_core.h: constify rb_call_info_t::kw_arg, Index: ext/objspace/objspace.c =================================================================== --- ext/objspace/objspace.c (revision 51325) +++ ext/objspace/objspace.c (revision 51326) @@ -61,9 +61,6 @@ total_i(void *vstart, void *vend, size_t https://github.com/ruby/ruby/blob/trunk/ext/objspace/objspace.c#L61 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); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/