Skip to content

Commit 8c12e6c

Browse files
committed
Fix merge conflict artifact.
1 parent 6ea3792 commit 8c12e6c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Python/pylifecycle.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)