mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
gh-128400: Only show the current thread in Py_FatalError
on the free-threaded build (#128758)
This commit is contained in:
parent
4533036e50
commit
bf64a582f0
4 changed files with 22 additions and 12 deletions
|
@ -3034,7 +3034,11 @@ _Py_FatalError_DumpTracebacks(int fd, PyInterpreterState *interp,
|
|||
PUTS(fd, "\n");
|
||||
|
||||
/* display the current Python stack */
|
||||
#ifndef Py_GIL_DISABLED
|
||||
_Py_DumpTracebackThreads(fd, interp, tstate);
|
||||
#else
|
||||
_Py_DumpTraceback(fd, tstate);
|
||||
#endif
|
||||
}
|
||||
|
||||
/* Print the current exception (if an exception is set) with its traceback,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue