Skip to content

Commit

Permalink
Fix rb_gc_impl_writebarrier_remember
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzhu2118 committed Oct 21, 2024
1 parent 3d9b614 commit 34e8eef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gc/mmtk.c
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,9 @@ rb_gc_impl_writebarrier_unprotect(void *objspace_ptr, VALUE obj)
void
rb_gc_impl_writebarrier_remember(void *objspace_ptr, VALUE obj)
{
rb_gc_impl_writebarrier(objspace_ptr, obj, Qundef);
struct MMTk_ractor_cache *cache = rb_gc_get_ractor_newobj_cache();

mmtk_object_reference_write_post(cache->mutator, (MMTk_ObjectReference)obj);
}

// Heap walking
Expand Down

0 comments on commit 34e8eef

Please sign in to comment.