use BUITIN_TYPE() rather than TYPE().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4cdd83f686
commit
a3b6e114b4
2
gc.c
2
gc.c
@ -924,7 +924,7 @@ gc_sweep()
|
|||||||
else {
|
else {
|
||||||
RBASIC(p)->flags &= ~FL_MARK;
|
RBASIC(p)->flags &= ~FL_MARK;
|
||||||
live += sizeof(VALUE);
|
live += sizeof(VALUE);
|
||||||
switch (TYPE(p)) {
|
switch (BUILTIN_TYPE(p)) {
|
||||||
case T_OBJECT:
|
case T_OBJECT:
|
||||||
live += size_of_table(ROBJECT(p)->iv_tbl);
|
live += size_of_table(ROBJECT(p)->iv_tbl);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user