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:
parent
331fb4a2b3
commit
6053426a66
2 changed files with 4 additions and 3 deletions
|
@ -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>
|
Wed Jul 22 06:37:54 2015 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* vm_core.h: constify rb_call_info_t::kw_arg,
|
* vm_core.h: constify rb_call_info_t::kw_arg,
|
||||||
|
|
|
@ -61,9 +61,6 @@ total_i(void *vstart, void *vend, size_t stride, void *ptr)
|
||||||
case T_NODE:
|
case T_NODE:
|
||||||
case T_ZOMBIE:
|
case T_ZOMBIE:
|
||||||
continue;
|
continue;
|
||||||
case T_CLASS:
|
|
||||||
if (FL_TEST(v, FL_SINGLETON))
|
|
||||||
continue;
|
|
||||||
default:
|
default:
|
||||||
if (data->klass == 0 || rb_obj_is_kind_of(v, data->klass)) {
|
if (data->klass == 0 || rb_obj_is_kind_of(v, data->klass)) {
|
||||||
data->total += rb_obj_memsize_of(v);
|
data->total += rb_obj_memsize_of(v);
|
||||||
|
|
Loading…
Add table
Reference in a new issue