зеркало из https://github.com/github/ruby.git
* 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:
Родитель
32623a1627
Коммит
0a0c657285
|
@ -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.
|
||||
|
|
|
@ -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:
|
||||
|
|
Загрузка…
Ссылка в новой задаче