summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorPeter Zhu <[email protected]>2024-08-30 13:05:24 -0400
committerPeter Zhu <[email protected]>2024-09-03 10:05:38 -0400
commit3c63a01295b4219743b3d3e883fd4a4a616960a6 (patch)
treecf84ba019a3625930df8facb2b912795ed38bd60 /vm.c
parenta2243ee48bf6d68b0e5c713b5e7dd6bf3b57f62c (diff)
Move responsibility of heap walking into Ruby
This commit removes the need for the GC implementation to implement heap walking and instead Ruby will implement it.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/11511
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm.c b/vm.c
index e92c823cd7..b1e0780d9e 100644
--- a/vm.c
+++ b/vm.c
@@ -3099,7 +3099,7 @@ ruby_vm_destruct(rb_vm_t *vm)
}
}
- struct rb_objspace *objspace = vm->objspace;
+ struct rb_objspace *objspace = vm->gc.objspace;
rb_vm_living_threads_init(vm);
ruby_vm_run_at_exit_hooks(vm);
@@ -4209,7 +4209,7 @@ Init_VM(void)
rb_define_global_const("TOPLEVEL_BINDING", rb_binding_new());
#ifdef _WIN32
- rb_objspace_gc_enable(vm->objspace);
+ rb_objspace_gc_enable(vm->gc.objspace);
#endif
}
vm_init_redefined_flag();