]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-122201: Lock mutex when setting handling_thread to NULL (#122204)
authorSam Gross <colesbury@gmail.com>
Fri, 26 Jul 2024 17:06:07 +0000 (13:06 -0400)
committerGitHub <noreply@github.com>
Fri, 26 Jul 2024 17:06:07 +0000 (13:06 -0400)
commitc557ae97d6bd9d04164a19b4fe136610e54dbdd8
tree918333ecf6b8ef6758c1a6b1c73c00a0e86a045b
parent64857d849f3079a73367525ce93fd7a463b83908
gh-122201: Lock mutex when setting handling_thread to NULL (#122204)

In the free-threaded build, we need to lock pending->mutex when clearing
the handling_thread in order not to race with a concurrent
make_pending_calls in the same interpreter.
Python/ceval_gil.c
Tools/tsan/suppressions_free_threading.txt