[3.14] gh-146270: Fix `PyMember_SetOne(..., NULL)` not being atomic (… · python/cpython@8a7f057 · GitHub
Skip to content

Commit 8a7f057

Browse files
[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 1bdfc0f) Co-authored-by: Daniele Parmeggiani <8658291+dpdani@users.noreply.github.com>
1 parent 5b33e9c commit 8a7f057

3 files changed

Lines changed: 41 additions & 21 deletions

File tree

Lib/test/test_free_threading/test_slots.py

Lines changed: 27 additions & 8 deletions
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix a sequential consistency bug in ``structmember.c``.

Python/structmember.c

Lines changed: 13 additions & 13 deletions

0 commit comments

Comments
 (0)