mirror of
https://github.com/python/cpython.git
synced 2025-09-09 18:32:22 +00:00
merge 3.4
This commit is contained in:
commit
e6bfdb9ca5
1 changed files with 7 additions and 0 deletions
|
@ -1267,6 +1267,13 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
|
||||||
/* Other threads may run now */
|
/* Other threads may run now */
|
||||||
|
|
||||||
take_gil(tstate);
|
take_gil(tstate);
|
||||||
|
|
||||||
|
/* Check if we should make a quick exit. */
|
||||||
|
if (_Py_Finalizing && _Py_Finalizing != tstate) {
|
||||||
|
drop_gil(tstate);
|
||||||
|
PyThread_exit_thread();
|
||||||
|
}
|
||||||
|
|
||||||
if (PyThreadState_Swap(tstate) != NULL)
|
if (PyThreadState_Swap(tstate) != NULL)
|
||||||
Py_FatalError("ceval: orphan tstate");
|
Py_FatalError("ceval: orphan tstate");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue