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 (memsize_of): take care of

T_CLASS/const_tbl.
  a patch from nagachika <nagachika00@gmail.com> [ruby-dev:42490]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2010-10-29 15:29:16 +00:00
parent 32623a1627
commit 0a0c657285
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,9 @@
Sat Oct 30 00:24:42 2010 Koichi Sasada <ko1@atdot.net>
* ext/objspace/objspace.c (memsize_of): take care of
T_CLASS/const_tbl.
a patch from nagachika <nagachika00@gmail.com> [ruby-dev:42490]
Fri Oct 29 23:32:36 2010 Koichi Sasada <ko1@atdot.net>
* test/profile_test_all.rb: added.

View file

@ -69,6 +69,9 @@ memsize_of(VALUE obj)
if (RCLASS(obj)->ptr->iv_tbl) {
size += st_memsize(RCLASS(obj)->ptr->iv_tbl);
}
if (RCLASS(obj)->ptr->const_tbl) {
size += st_memsize(RCLASS(obj)->ptr->const_tbl);
}
size += sizeof(rb_classext_t);
break;
case T_STRING: