]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-122201: Lock mutex when setting handling_thread to NULL (GH-122204) (#122319)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 26 Jul 2024 17:30:08 +0000 (19:30 +0200)
committerGitHub <noreply@github.com>
Fri, 26 Jul 2024 17:30:08 +0000 (17:30 +0000)
commit9d5dde50068e1d3778444fb5e302b4567ebfc232
tree4be61ad7ca5f2c6819d6a985a1afb5faed3fbf1b
parent816a1572e56f7051b861c0f28c91da676e0e4ef8
[3.13] gh-122201: Lock mutex when setting handling_thread to NULL (GH-122204) (#122319)

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.
(cherry picked from commit c557ae97d6bd9d04164a19b4fe136610e54dbdd8)

Co-authored-by: Sam Gross <colesbury@gmail.com>
Python/ceval_gil.c
Tools/tsan/suppressions_free_threading.txt