]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-132657: Use stronger memory ordering for so->mask. (gh-142735)
authorNeil Schemenauer <nas-github@arctrix.com>
Mon, 15 Dec 2025 04:27:37 +0000 (20:27 -0800)
committerGitHub <noreply@github.com>
Mon, 15 Dec 2025 04:27:37 +0000 (20:27 -0800)
commit19c72d23fd99292dd33d9cae85661df848f6cf43
treebdaffc9cd6f25187cfc5762daf5803cdc25400cc
parentd844d22cb00e4a8a224a79109870ae13caddeaef
gh-132657: Use stronger memory ordering for so->mask. (gh-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`.
Objects/setobject.c