Skip to content

Commit 6774487

Browse files
committed
Use existing vm variable for frozen strings in rb_gc_vm_weak_table_foreach
1 parent cd0abd6 commit 6774487

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

gc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3461,9 +3461,8 @@ rb_gc_vm_weak_table_foreach(vm_table_foreach_callback_func callback,
34613461
break;
34623462
}
34633463
case RB_GC_VM_FROZEN_STRINGS_TABLE: {
3464-
st_table *frozen_strings = GET_VM()->frozen_strings;
34653464
st_foreach_with_replace(
3466-
frozen_strings,
3465+
vm->frozen_strings,
34673466
vm_weak_table_frozen_strings_foreach,
34683467
vm_weak_table_foreach_update_key,
34693468
(st_data_t)&foreach_data

0 commit comments

Comments
 (0)