Project

General

Profile

« Previous | Next » 

Revision bbedd29b

Added by peterzhu2118 (Peter Zhu) about 4 years ago

[Bug #18117] Fix Ractor race condition with GC

rb_objspace_reachable_objects_from requires that the GC not be active.
Since the Ractor barrier is not executed for incremental sweeping,
Ractor may call rb_objspace_reachable_objects_from after sweeping
has started to share objects. This causes a crash that looks like
the following:

<internal:ractor>:627: [BUG] rb_objspace_reachable_objects_from() is not supported while during_gc == true 

Co-authored-by: Vinicius Stock