From 21feb209a893d356c1be6d96b11d79a978b62163 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Fri, 18 Oct 2024 10:43:55 -0400 Subject: [PATCH] Implement rb_gc_impl_prepare_heap --- gc/mmtk.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gc/mmtk.c b/gc/mmtk.c index 12947f5d8facdd..3fb5aa39e2fd94 100644 --- a/gc/mmtk.c +++ b/gc/mmtk.c @@ -568,10 +568,16 @@ rb_gc_impl_during_gc_p(void *objspace_ptr) return false; } +static void +rb_gc_impl_prepare_heap_i(MMTk_ObjectReference obj, void *d) +{ + rb_gc_prepare_heap_process_object((VALUE)obj); +} + void rb_gc_impl_prepare_heap(void *objspace_ptr) { - // TODO + mmtk_enumerate_objects(rb_gc_impl_prepare_heap_i, NULL); } void