]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43311: Create GIL autoTSSkey ealier (GH-24819)
authorVictor Stinner <vstinner@python.org>
Wed, 10 Mar 2021 19:00:46 +0000 (20:00 +0100)
committerGitHub <noreply@github.com>
Wed, 10 Mar 2021 19:00:46 +0000 (20:00 +0100)
commit87f649a409da9d99682e78a55a83fc43225a8729
treeecba0910f42f93dd6aa107ce4506a55f66249ec2
parent9a9c11ad41d7887f3d6440e0f0e8966156d959b5
bpo-43311: Create GIL autoTSSkey ealier (GH-24819)

At Python startup, call _PyGILState_Init() before
PyInterpreterState_New() which calls _PyThreadState_GET(). When
Python is built using --with-experimental-isolated-subinterpreters,
_PyThreadState_GET() uses autoTSSkey.
Include/internal/pycore_pylifecycle.h
Python/pylifecycle.c
Python/pystate.c