]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-137238: Fix data race in `_Py_slot_tp_getattr_hook` (gh-137240)
authorSam Gross <colesbury@gmail.com>
Tue, 5 Aug 2025 13:32:22 +0000 (09:32 -0400)
committerGitHub <noreply@github.com>
Tue, 5 Aug 2025 13:32:22 +0000 (09:32 -0400)
commit485b16b4f7b28cefdfb524c2869d473078e349bf
tree4bbf662ebfb6898b27975286e16998ec6a4bc863
parenta50822ff94ae0625f0b46480857fb141531c0688
gh-137238: Fix data race in `_Py_slot_tp_getattr_hook` (gh-137240)

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