]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
faulthandler now works in non-Python threads
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 16 Mar 2016 21:45:24 +0000 (22:45 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 16 Mar 2016 21:45:24 +0000 (22:45 +0100)
commit861d9abfcf6a4a34790e4edc5e440a68534137e1
treea4ea3ef14a2f0494743733b9db4079f27f5906ca
parentc36674a2c52ecb30e180b3bcced2b8c529cf72fb
faulthandler now works in non-Python threads

Issue #26563:

* Add _PyGILState_GetInterpreterStateUnsafe() function: the single
  PyInterpreterState used by this process' GILState implementation.
* Enhance _Py_DumpTracebackThreads() to retrieve the interpreter state from
  autoInterpreterState in last resort. The function now accepts NULL for interp
  and current_tstate parameters.
* test_faulthandler: fix a ResourceWarning when test is interrupted by CTRL+c
Include/pystate.h
Include/traceback.h
Lib/test/test_faulthandler.py
Modules/faulthandler.c
Python/pylifecycle.c
Python/pystate.c
Python/traceback.c