diff options
author | Peter Bierma <zintensitydev@gmail.com> | 2025-01-13 09:36:54 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-13 20:06:54 +0530 |
commit | bf64a582f00a030fee11b7f89c6a02ea967990ca (patch) | |
tree | 56bd07e010d13461d2ab092655d48f8e8b9ed29e /Python/pylifecycle.c | |
parent | 4533036e50f1e604e8c06710d9e19dd700f89c1c (diff) | |
download | cpython-bf64a582f00a030fee11b7f89c6a02ea967990ca.tar.gz cpython-bf64a582f00a030fee11b7f89c6a02ea967990ca.zip |
gh-128400: Only show the current thread in `Py_FatalError` on the free-threaded build (#128758)
Diffstat (limited to 'Python/pylifecycle.c')
-rw-r--r-- | Python/pylifecycle.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index 8a15a09a01d..9a8a92aaceb 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -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, |