Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Forcibly mark the interpreter as active.
  • Loading branch information
ericsnowcurrently committed Sep 15, 2018
commit 331728d47ab5a9edf2832535235a16b3731f4d0c
5 changes: 2 additions & 3 deletions Python/pylifecycle.c
Original file line number Diff line number Diff line change
Expand Up @@ -1417,9 +1417,8 @@ Py_EndInterpreter(PyThreadState *tstate)
Py_FatalError("Py_EndInterpreter: thread still has a frame");

wait_for_thread_shutdown();
// XXX Forcibly mark current thread as active?
assert(interp->ceval.active);
assert(interp->ceval.active_thread == PyThread_get_thread_ident());
interp->ceval.active = 1;
interp->ceval.active_thread = PyThread_get_thread_ident();

if (_Py_atomic_load_relaxed(
&(interp->ceval.pending.calls_to_do)))
Expand Down