diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2023-05-05 19:23:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-05 19:23:00 (GMT) |
commit | 55671fe04700ccb4e73c8db3dd1e9c031dafe700 (patch) | |
tree | 88902724b881874e7c45b6c8386c7e9a9e9c0d58 /Python/pystate.c | |
parent | d00d94214971621e6a3541425ee8c8072023ca1a (diff) | |
download | cpython-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.c | 2 |
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); |