Skip to content

Commit

Permalink
Implement rb_gc_impl_prepare_heap
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzhu2118 committed Oct 18, 2024
1 parent 9451a19 commit 21feb20
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion gc/mmtk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 21feb20

Please sign in to comment.