File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -2108,6 +2108,7 @@ make_pre_finalization_calls(PyThreadState *tstate)
21082108 _PyEval_StartTheWorldAll (interp -> runtime );
21092109 PyMutex_Unlock (& interp -> ceval .pending .mutex );
21102110 }
2111+ assert (PyMutex_IsLocked (& interp -> ceval .pending .mutex ));
21112112 ASSERT_WORLD_STOPPED (interp );
21122113}
21132114
@@ -2538,8 +2539,6 @@ Py_EndInterpreter(PyThreadState *tstate)
25382539 /* Remaining daemon threads will automatically exit
25392540 when they attempt to take the GIL (ex: PyEval_RestoreThread()). */
25402541 _PyInterpreterState_SetFinalizing (interp , tstate );
2541- _PyEval_StartTheWorldAll (interp -> runtime );
2542- PyMutex_Unlock (& interp -> ceval .pending .mutex );
25432542
25442543 PyThreadState * list = _PyThreadState_RemoveExcept (tstate );
25452544 for (PyThreadState * p = list ; p != NULL ; p = p -> next ) {
You can’t perform that action at this time.
0 commit comments