]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-146270: Fix `PyMember_SetOne(..., NULL)` not being atomic (gh-148800)
authorDaniele Parmeggiani <8658291+dpdani@users.noreply.github.com>
Wed, 6 May 2026 13:50:24 +0000 (14:50 +0100)
committerGitHub <noreply@github.com>
Wed, 6 May 2026 13:50:24 +0000 (09:50 -0400)
commit1bdfc0f253730077ccd3a4b0714388e8227b1b71
tree3b261c45cb0cb9f3adc763fa1e91bd30aa638a8d
parente7613f2735d5c45d86351729e0483db25af50a21
gh-146270: Fix `PyMember_SetOne(..., NULL)` not being atomic (gh-148800)

Fixes a sequential consistency bug whereby two threads that are deleting a struct member may observe both their deletions to be successful.
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