Actions
Bug #22460
closed
Updated by eightbitraptor (Matt V-H) about 17 hours ago
- Assignee set to eightbitraptor (Matt V-H)
Updated by eightbitraptor (Matt V-H) about 17 hours ago
- Status changed from Open to Closed
Applied in changeset git|0d83a93784090400ce38f0852ae11bc103765810.
Unshare arrays only when they become shareable
obj_traverse_i called rb_ary_cancel_sharing on every array it visited,
before the traversal knew whether the object graph was shareable.
So Ractor.shareable? modified frozen arrays even when it returned false.
This commit moves rb_ary_cancel_sharing into mark_shareable, which
runs only after the traversal succeeds.
[Bug #22460]
Actions