]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-137238: Fix data race in `_Py_slot_tp_getattr_hook` (gh-137240) (#137416)
authorSam Gross <colesbury@gmail.com>
Tue, 7 Oct 2025 17:36:56 +0000 (13:36 -0400)
committerGitHub <noreply@github.com>
Tue, 7 Oct 2025 17:36:56 +0000 (17:36 +0000)
commit85dabb9c1592e6b1990d7a8d29c9ec872aaf750e
tree0c4c26c045950648dfbdc9482042bd4c4e595da3
parent5cd6cfe4cf6770b9424bb23f8c7c661f7a3db7b0
[3.14] gh-137238: Fix data race in `_Py_slot_tp_getattr_hook` (gh-137240) (#137416)

Replacing the slot isn't thread-safe if the GIL is disabled. Don't
require that the slot has been replaced when specializing.
(cherry picked from commit 485b16b4f7b28cefdfb524c2869d473078e349bf)
Objects/typeobject.c
Python/specialize.c
Tools/tsan/suppressions_free_threading.txt