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 68f820f commit 885ffe8Copy full SHA for 885ffe8
Objects/object.c
@@ -2994,7 +2994,11 @@ _Py_Dealloc(PyObject *op)
2994
destructor dealloc = type->tp_dealloc;
2995
#ifdef Py_DEBUG
2996
PyThreadState *tstate = _PyThreadState_GET();
2997
+#ifndef Py_GIL_DISABLED
2998
+ /* This assertion doesn't hold for the free-threading build, as
2999
+ * PyStackRef_CLOSE_SPECIALIZED is not implemented */
3000
assert(tstate->current_frame == NULL || tstate->current_frame->stackpointer != NULL);
3001
+#endif
3002
PyObject *old_exc = tstate != NULL ? tstate->current_exception : NULL;
3003
// Keep the old exception type alive to prevent undefined behavior
3004
// on (tstate->curexc_type != old_exc_type) below
0 commit comments