Allow symbols to move in compaction

This commit is contained in:
Peter Zhu 2026-01-12 21:20:12 -05:00
parent c34c7def5a
commit 6e480e6714
Notes: git 2026-01-15 22:58:01 +00:00

View File

@ -6872,12 +6872,6 @@ gc_is_moveable_obj(rb_objspace_t *objspace, VALUE obj)
case T_ZOMBIE:
return FALSE;
case T_SYMBOL:
// TODO: restore original behavior
// if (RSYMBOL(obj)->id & ~ID_SCOPE_MASK) {
// return FALSE;
// }
return false;
/* fall through */
case T_STRING:
case T_OBJECT:
case T_FLOAT: