gh-128400: Only show the current thread in Py_FatalError on the free-threaded build (#128758)

This commit is contained in:
Peter Bierma authored and GitHub committed 2025-01-13 20:06:54 +05:30
1 parent 4533036e50
commit bf64a582f0
4 files changed
+22 -12

No files matched your search

+4
View File
@@ -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,