summaryrefslogtreecommitdiff
path: root/coroutine/ucontext/Context.c
diff options
context:
space:
mode:
authorJean Boussier <[email protected]>2025-06-13 14:25:42 +0200
committerJean Boussier <[email protected]>2025-06-13 18:27:52 +0200
commite22fc73c66b478a19930788b7d23c6ea48b4bdec (patch)
tree6b12d308e407f53bc17d2d737f9b4e0ae559b2ff /coroutine/ucontext/Context.c
parent0674f7dfb5fa79c5b2158c38f2ae80bc5692922a (diff)
Fix a race condition in object_id for shareable objects
If an object is shareable and has no capacity left, it isn't safe to store the object ID in fields as it requires an object resize which can't be done unless all field reads are synchronized. In this very specific case we create the object_id in advance, before the object is made shareable.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13609
Diffstat (limited to 'coroutine/ucontext/Context.c')
0 files changed, 0 insertions, 0 deletions