diff options
author | Victor Stinner <vstinner@python.org> | 2021-02-19 13:33:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-19 13:33:31 +0100 |
commit | 101bf69ff18a946fed7c274f088878aaf85174cc (patch) | |
tree | 40aad6b5b086f5eae0135cd9f695365af3be5a2a /Python/ceval.c | |
parent | 62078101ea1be5d2fc472a3f0d9d135e0bd5cd38 (diff) | |
download | cpython-git-101bf69ff18a946fed7c274f088878aaf85174cc.tar.gz |
bpo-43268: _Py_IsMainInterpreter() now expects interp (GH-24577)
The _Py_IsMainInterpreter() function now expects interp rather than
tstate.
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 0b7400359e..81a21c9a0f 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -298,7 +298,7 @@ PyStatus _PyEval_InitGIL(PyThreadState *tstate) { #ifndef EXPERIMENTAL_ISOLATED_SUBINTERPRETERS - if (!_Py_IsMainInterpreter(tstate)) { + if (!_Py_IsMainInterpreter(tstate->interp)) { /* Currently, the GIL is shared by all interpreters, and only the main interpreter is responsible to create and destroy it. */ @@ -326,7 +326,7 @@ void _PyEval_FiniGIL(PyThreadState *tstate) { #ifndef EXPERIMENTAL_ISOLATED_SUBINTERPRETERS - if (!_Py_IsMainInterpreter(tstate)) { + if (!_Py_IsMainInterpreter(tstate->interp)) { /* Currently, the GIL is shared by all interpreters, and only the main interpreter is responsible to create and destroy it. */ |