summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorPeter Zhu <[email protected]>2025-01-24 10:16:27 -0500
committerPeter Zhu <[email protected]>2025-01-27 10:28:36 -0500
commit98b36f6f3661430a29ee1fe40d28b9abeeb903f5 ()
tree0a8c6901a489131948f58e7a25cb2e3c4f461213 /vm.c
parent9e5ff79c5be426c3e6fef80449620075cbca7671 (diff)
Use rb_gc_vm_weak_table_foreach for reference updating
We can use rb_gc_vm_weak_table_foreach for reference updating of weak tables in the default GC.
Notes: Merged: https://.com/ruby/ruby/pull/12629
-rw-r--r--vm.c4
1 files changed, 0 insertions, 4 deletions
@@ -2918,8 +2918,6 @@ rb_vm_update_references(void *ptr)
if (ptr) {
rb_vm_t *vm = ptr;
- rb_gc_update_tbl_refs(vm->ci_table);
- rb_gc_update_tbl_refs(vm->frozen_strings);
vm->mark_object_ary = rb_gc_location(vm->mark_object_ary);
vm->load_path = rb_gc_location(vm->load_path);
vm->load_path_snapshot = rb_gc_location(vm->load_path_snapshot);
@@ -2936,8 +2934,6 @@ rb_vm_update_references(void *ptr)
vm->top_self = rb_gc_location(vm->top_self);
vm->orig_progname = rb_gc_location(vm->orig_progname);
- rb_gc_update_tbl_refs(vm->overloaded_cme_table);
-
rb_gc_update_values(RUBY_NSIG, vm->trap_list.cmd);
if (vm->coverages) {