Skip to content

Commit

Permalink
Use RICLASS_OWNS_M_TBL_P
Browse files Browse the repository at this point in the history
It's more consistent with gc_mark_children.
  • Loading branch information
peterzhu2118 committed Dec 19, 2023
1 parent bd91c51 commit 50d3921
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gc.c
Expand Up @@ -10752,8 +10752,7 @@ gc_update_object_references(rb_objspace_t *objspace, VALUE obj)
break;

case T_ICLASS:
if (FL_TEST(obj, RICLASS_IS_ORIGIN) &&
!FL_TEST(obj, RICLASS_ORIGIN_SHARED_MTBL)) {
if (RICLASS_OWNS_M_TBL_P(obj)) {
update_m_tbl(objspace, RCLASS_M_TBL(obj));
}
if (RCLASS_SUPER((VALUE)obj)) {
Expand Down

0 comments on commit 50d3921

Please sign in to comment.