bpo-39984: Pass tstate to _PyEval_SignalAsyncExc() (GH-19049)
_PyEval_SignalAsyncExc() and _PyEval_FiniThreads() now expect tstate,
instead of ceval.
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c
index e63ecf7..da2bb37 100644
--- a/Python/pylifecycle.c
+++ b/Python/pylifecycle.c
@@ -548,7 +548,7 @@
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);