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 0ee4aba commit 04318d0Copy full SHA for 04318d0
Include/internal/pycore_freelist.h
@@ -17,15 +17,12 @@ extern "C" {
17
static inline struct _Py_freelists *
18
_Py_freelists_GET(void)
19
{
20
- PyThreadState *tstate = _PyThreadState_GET();
21
-#ifdef Py_DEBUG
22
- _Py_EnsureTstateNotNULL(tstate);
23
-#endif
24
-
25
#ifdef Py_GIL_DISABLED
+ PyThreadState *tstate = _PyThreadState_GET();
26
return &((_PyThreadStateImpl*)tstate)->freelists;
27
#else
28
- return &tstate->interp->object_state.freelists;
+ PyInterpreterState *interp = _PyInterpreterState_GET();
+ return &interp->object_state.freelists;
29
#endif
30
}
31
0 commit comments