summaryrefslogtreecommitdiff
path: root/Python/pylifecycle.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-03-18 09:26:25 +0100
committerGitHub <noreply@github.com>2020-03-18 09:26:25 +0100
commit56bfdebfb17ea9d3245b1f222e92b8e3b1ed6118 (patch)
tree69de990dd515d603b5fc01f172320b7b304fda12 /Python/pylifecycle.c
parent611836a69a7a98bb106b4d315ed76a1e17266f4f (diff)
downloadcpython-git-56bfdebfb17ea9d3245b1f222e92b8e3b1ed6118.tar.gz
bpo-39984: Pass tstate to _PyEval_SignalAsyncExc() (GH-19049)
_PyEval_SignalAsyncExc() and _PyEval_FiniThreads() now expect tstate, instead of ceval.
Diffstat (limited to 'Python/pylifecycle.c')
-rw-r--r--Python/pylifecycle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c
index e63ecf70f3..da2bb37af5 100644
--- a/Python/pylifecycle.c
+++ b/Python/pylifecycle.c
@@ -548,7 +548,7 @@ pycore_create_interpreter(_PyRuntimeState *runtime,
another running thread (see issue #9901).
Instead we destroy the previously created GIL here, which ensures
that we can call Py_Initialize / Py_FinalizeEx multiple times. */
- _PyEval_FiniThreads(&runtime->ceval);
+ _PyEval_FiniThreads(tstate);
/* Auto-thread-state API */
status = _PyGILState_Init(tstate);