]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-99113: Share the GIL via PyInterpreterState.ceval.gil (gh-104203)
authorEric Snow <ericsnowcurrently@gmail.com>
Fri, 5 May 2023 19:23:00 +0000 (13:23 -0600)
committerGitHub <noreply@github.com>
Fri, 5 May 2023 19:23:00 +0000 (13:23 -0600)
commit55671fe04700ccb4e73c8db3dd1e9c031dafe700
tree88902724b881874e7c45b6c8386c7e9a9e9c0d58
parentd00d94214971621e6a3541425ee8c8072023ca1a
gh-99113: Share the GIL via PyInterpreterState.ceval.gil (gh-104203)

In preparation for a per-interpreter GIL, we add PyInterpreterState.ceval.gil, set it to the shared GIL for each interpreter, and use that rather than using _PyRuntime.ceval.gil directly.  Note that _PyRuntime.ceval.gil is still the actual GIL.
Include/internal/pycore_ceval.h
Include/internal/pycore_ceval_state.h
Modules/_xxsubinterpretersmodule.c
Python/ceval_gil.c
Python/pystate.c