mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #27336: Fix compilation failures --without-threads
This commit is contained in:
parent
d4b45cb9ca
commit
531396c764
3 changed files with 6 additions and 3 deletions
|
@ -745,7 +745,7 @@ _Py_DumpTracebackThreads(int fd, PyInterpreterState *interp,
|
|||
if (current_tstate == NULL) {
|
||||
/* Call _PyThreadState_UncheckedGet() instead of PyThreadState_Get()
|
||||
to not fail with a fatal error if the thread state is NULL. */
|
||||
current_thread = _PyThreadState_UncheckedGet();
|
||||
current_tstate = _PyThreadState_UncheckedGet();
|
||||
}
|
||||
|
||||
if (interp == NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue