]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-146270: Fix `PyMember_SetOne(..., NULL)` not being atomic (gh-148800) ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 6 May 2026 14:16:36 +0000 (16:16 +0200)
committerGitHub <noreply@github.com>
Wed, 6 May 2026 14:16:36 +0000 (14:16 +0000)
commit8a7f0570e653e9c9fdbf61aa0411a4a2ddca3cf1
treed44e28353abfa96e6641f2900218601bb20ce53b
parent5b33e9c1763813c459f9857ad3c168692fb95148
[3.14] gh-146270: Fix `PyMember_SetOne(..., NULL)` not being atomic (gh-148800) (#149460)

Fixes a sequential consistency bug whereby two threads that are deleting a struct member may observe both their deletions to be successful.

(cherry picked from commit 1bdfc0f253730077ccd3a4b0714388e8227b1b71)

Co-authored-by: Daniele Parmeggiani <8658291+dpdani@users.noreply.github.com>
Lib/test/test_free_threading/test_slots.py
Misc/NEWS.d/next/Core_and_Builtins/2026-04-20-15-25-55.gh-issue-146270.qZYfyc.rst [new file with mode: 0644]
Python/structmember.c