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 7115c75 commit c6a7f91Copy full SHA for c6a7f91
Include/internal/pycore_freelist.h
@@ -17,6 +17,11 @@ extern "C" {
17
static inline struct _Py_freelists *
18
_Py_freelists_GET(void)
19
{
20
+#ifdef Py_DEBUG
21
+ PyThreadState *tstate = _PyThreadState_GET();
22
+ _Py_EnsureTstateNotNULL(tstate);
23
+#endif
24
+
25
#ifdef Py_GIL_DISABLED
26
PyThreadState *tstate = _PyThreadState_GET();
27
return &((_PyThreadStateImpl*)tstate)->freelists;
0 commit comments