1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
ko1 2015-07-21 22:19:48 +00:00
parent 331fb4a2b3
commit 6053426a66
2 changed files with 4 additions and 3 deletions

View file

@ -1,3 +1,7 @@
Wed Jul 22 07:15:33 2015 Koichi Sasada <ko1@atdot.net>
* ext/objspace/objspace.c (total_i): no need to skip singleton classes.
Wed Jul 22 06:37:54 2015 Koichi Sasada <ko1@atdot.net>
* vm_core.h: constify rb_call_info_t::kw_arg,

View file

@ -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);