]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-117657: Fix `__slots__` thread safety in free-threaded build (#119368)
authorDaniele Parmeggiani <8658291+dpdani@users.noreply.github.com>
Mon, 17 Jun 2024 18:44:54 +0000 (14:44 -0400)
committerGitHub <noreply@github.com>
Mon, 17 Jun 2024 18:44:54 +0000 (18:44 +0000)
commit362cd2680b45a36c3467b9721ff7fc0ceb338452
tree612908e214830a55dd0d7c180ac0f72bd5f5c012
parent460cc9e14e221c53c0038a847bfd411fe184ebf3
gh-117657:  Fix `__slots__` thread safety in free-threaded build (#119368)

Fix a race in `PyMember_GetOne` and `PyMember_SetOne` for `Py_T_OBJECT_EX`.
These functions implement `__slots__` accesses for Python objects.
Lib/test/test_descr.py
Lib/test/test_free_threading/test_slots.py [new file with mode: 0644]
Python/structmember.c
Tools/tsan/suppressions_free_threading.txt