summaryrefslogtreecommitdiffstats
path: root/Python/pystate.c
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2023-05-05 19:23:00 (GMT)
committerGitHub <noreply@github.com>2023-05-05 19:23:00 (GMT)
commit55671fe04700ccb4e73c8db3dd1e9c031dafe700 (patch)
tree88902724b881874e7c45b6c8386c7e9a9e9c0d58 /Python/pystate.c
parentd00d94214971621e6a3541425ee8c8072023ca1a (diff)
downloadcpython-55671fe04700ccb4e73c8db3dd1e9c031dafe700.zip
cpython-55671fe04700ccb4e73c8db3dd1e9c031dafe700.tar.gz
cpython-55671fe04700ccb4e73c8db3dd1e9c031dafe700.tar.bz2
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.
Diffstat (limited to 'Python/pystate.c')
-rw-r--r--Python/pystate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pystate.c b/Python/pystate.c
index f09d376..75bd9f4 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -2186,7 +2186,7 @@ PyGILState_Ensure(void)
/* Ensure that _PyEval_InitThreads() and _PyGILState_Init() have been
called by Py_Initialize() */
- assert(_PyEval_ThreadsInitialized(runtime));
+ assert(_PyEval_ThreadsInitialized());
assert(gilstate_tss_initialized(runtime));
assert(runtime->gilstate.autoInterpreterState != NULL);