FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-132657: Use stronger memory ordering for so->mask. by nascheme · Pull Request #142735 · python/cpython · GitHub

/ cpython Public

gh-132657: Use stronger memory ordering for so->mask. - #142735

Merged
nascheme merged 1 commit into
python:mainfrom
nascheme:gh-132657-lockfree-set-memory-ordering
Dec 15, 2025
Merged

gh-132657: Use stronger memory ordering for so->mask.#142735
nascheme merged 1 commit into
python:mainfrom
nascheme:gh-132657-lockfree-set-memory-ordering

Conversation

nascheme commented Dec 15, 2025
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

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 added type-bug An unexpected behavior, bug, or error skip news topic-free-threading labels Dec 15, 2025
nascheme marked this pull request as ready for review December 15, 2025 04:26
nascheme requested a review from rhettinger as a code owner December 15, 2025 04:26
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`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL