diff options
| author | Peter Zhu <peter@peterzhu.ca> | 2021-08-17 09:38:40 -0400 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2021-08-24 09:47:42 -0400 |
| commit | bbedd29b6e98ef6e3fc2ce2b358d2b509b7cd1bb (patch) | |
| tree | 2eba0389a85fb60b06fc4c2fe9ba6d57e4117ee0 /include | |
| parent | b62ed309f05d248c746279f35f2609f01ea1e4a5 (diff) | |
[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 <vinicius.stock@shopify.com>
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4755
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
