mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
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.
This commit is contained in:
parent
9e5ff79c5b
commit
98b36f6f36
Notes:
git
2025-01-27 15:28:55 +00:00
6 changed files with 26 additions and 48 deletions
4
vm.c
4
vm.c
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue