]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-104341: Call _PyEval_ReleaseLock() with NULL When Finalizing the Current Thread...
authorEric Snow <ericsnowcurrently@gmail.com>
Thu, 1 Jun 2023 22:24:10 +0000 (16:24 -0600)
committerGitHub <noreply@github.com>
Thu, 1 Jun 2023 22:24:10 +0000 (16:24 -0600)
commit3698fda06eefb3c01e78c4c07f46fcdd0559e0f6
treeaa978df64aae6acd5bb007708e3d4ff37388f9aa
parent8a8ebf2e3ddb880806237c7a5983f9744f7c215f
gh-104341: Call _PyEval_ReleaseLock() with NULL When Finalizing the Current Thread (gh-105109)

This avoids the problematic race in drop_gil() by skipping the FORCE_SWITCHING code there for finalizing threads.

(The idea for this approach came out of discussions with @markshannon.)
Include/internal/pycore_ceval.h
Python/ceval_gil.c
Python/pylifecycle.c
Python/pystate.c