Skip to content

Commit

Permalink
Don't check for dynamic symbol in gc_is_moveable_obj
Browse files Browse the repository at this point in the history
All GC managed symbols are dynamic symbols so we don't need to check it.
  • Loading branch information
peterzhu2118 committed Apr 16, 2024
1 parent e5df889 commit d6debba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gc.c
Expand Up @@ -9519,7 +9519,7 @@ gc_is_moveable_obj(rb_objspace_t *objspace, VALUE obj)
case T_ZOMBIE:
return FALSE;
case T_SYMBOL:
if (DYNAMIC_SYM_P(obj) && (RSYMBOL(obj)->id & ~ID_SCOPE_MASK)) {
if (RSYMBOL(obj)->id & ~ID_SCOPE_MASK) {
return FALSE;
}
/* fall through */
Expand Down

0 comments on commit d6debba

Please sign in to comment.