Skip to content
Closed
Changes from 1 commit
Commits
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
Adjust interp_destroy() comment
  • Loading branch information
aeros committed Sep 20, 2019
commit cfbcddf747ee4b708d23a812a6364b68da747c81
2 changes: 1 addition & 1 deletion Modules/_xxsubinterpretersmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -2054,7 +2054,7 @@ interp_destroy(PyObject *self, PyObject *args, PyObject *kwds)
if (_ensure_not_running(interp) < 0) {
return NULL;
}
// Ensure current thread has the GIL (bpo-38154)
// Safely ensure current thread has the GIL (bpo-38154)
PyThreadState *current_tstate = PyGILState_GetThisThreadState();
if (!_Py_IsFinalizing() && !PyGILState_Check()){
PyEval_RestoreThread(current_tstate);
Expand Down