Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fbcafa commit 55c1435Copy full SHA for 55c1435
1 file changed
Python/pylifecycle.c
@@ -1299,8 +1299,12 @@ _Py_PrintFatalError(int fd)
1299
return;
1300
1301
display_stack:
1302
+#ifdef WITH_THREAD
1303
/* PyGILState_GetThisThreadState() works even if the GIL was released */
1304
tstate = PyGILState_GetThisThreadState();
1305
+#else
1306
+ tstate = PyThreadState_GET();
1307
+#endif
1308
if (tstate == NULL) {
1309
/* _Py_DumpTracebackThreads() requires the thread state to display
1310
* frames */
0 commit comments