]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-117657: Fix `__slots__` thread safety in free-threaded build (GH-119368...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 17 Jun 2024 19:12:25 +0000 (21:12 +0200)
committerGitHub <noreply@github.com>
Mon, 17 Jun 2024 19:12:25 +0000 (19:12 +0000)
commit396f8b0b98441344e1d3223a4075e5e342e0c2df
tree0d223474986d5d3054de64bfb8c36a340d1243e8
parent0dbb86c5bebf8d85dd295840261e1c944726271c
[3.13] gh-117657:  Fix `__slots__` thread safety in free-threaded build (GH-119368) (#120655)

Fix a race in `PyMember_GetOne` and `PyMember_SetOne` for `Py_T_OBJECT_EX`.
These functions implement `__slots__` accesses for Python objects.
(cherry picked from commit 362cd2680b45a36c3467b9721ff7fc0ceb338452)

Co-authored-by: Daniele Parmeggiani <8658291+dpdani@users.noreply.github.com>
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