mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
update super even if there is no ext
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e1eb54b99d
commit
7bd58a4e6d
1 changed files with 2 additions and 2 deletions
4
gc.c
4
gc.c
|
@ -7819,26 +7819,26 @@ gc_update_object_references(rb_objspace_t *objspace, VALUE obj)
|
|||
case T_CLASS:
|
||||
case T_MODULE:
|
||||
update_m_tbl(objspace, RCLASS_M_TBL(obj));
|
||||
UPDATE_IF_MOVED(objspace, RCLASS(obj)->super);
|
||||
if (!RCLASS_EXT(obj)) break;
|
||||
if (RCLASS_IV_TBL(obj)) {
|
||||
gc_update_table_refs(objspace, RCLASS_IV_TBL(obj));
|
||||
}
|
||||
update_class_ext(objspace, RCLASS_EXT(obj));
|
||||
update_const_tbl(objspace, RCLASS_CONST_TBL(obj));
|
||||
UPDATE_IF_MOVED(objspace, RCLASS(obj)->super);
|
||||
break;
|
||||
|
||||
case T_ICLASS:
|
||||
if (FL_TEST(obj, RICLASS_IS_ORIGIN)) {
|
||||
update_m_tbl(objspace, RCLASS_M_TBL(obj));
|
||||
}
|
||||
UPDATE_IF_MOVED(objspace, RCLASS(obj)->super);
|
||||
if (!RCLASS_EXT(obj)) break;
|
||||
if (RCLASS_IV_TBL(obj)) {
|
||||
gc_update_table_refs(objspace, RCLASS_IV_TBL(obj));
|
||||
}
|
||||
update_class_ext(objspace, RCLASS_EXT(obj));
|
||||
update_m_tbl(objspace, RCLASS_CALLABLE_M_TBL(obj));
|
||||
UPDATE_IF_MOVED(objspace, RCLASS(obj)->super);
|
||||
break;
|
||||
|
||||
case T_IMEMO:
|
||||
|
|
Loading…
Reference in a new issue