Skip to content

Conversation

@nascheme
Copy link
Member

@nascheme nascheme commented Dec 15, 2025

We need to use release/acquire ordering for the 'mask' member of the set structure. Without this, set_lookkey_threadsafe() could be looking at the old value of table but the new value of mask.

We need to use release/acquire ordering for the 'mask' member of the set
structure. Without this, `set_lookkey_threadsafe()` could be looking at
the old value of `table` but the new value of `mask`.
@nascheme nascheme added type-bug An unexpected behavior, bug, or error skip news topic-free-threading labels Dec 15, 2025
@nascheme nascheme marked this pull request as ready for review December 15, 2025 04:26
@nascheme nascheme requested a review from rhettinger as a code owner December 15, 2025 04:26
@nascheme nascheme merged commit 19c72d2 into python:main Dec 15, 2025
52 checks passed
fatelei pushed a commit to fatelei/cpython that referenced this pull request Dec 16, 2025
…-142735)

We need to use release/acquire ordering for the 'mask' member of the set
structure. Without this, `set_lookkey_threadsafe()` could be looking at
the old value of `table` but the new value of `mask`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news topic-free-threading type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant