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 94312c3 commit a166b47Copy full SHA for a166b47
Python/optimizer.c
@@ -314,7 +314,11 @@ add_to_pending_deletion_list(_PyExecutorObject *self)
314
static void
315
uop_dealloc(PyObject *op) {
316
_PyExecutorObject *self = _PyExecutorObject_CAST(op);
317
- _PyObject_GC_UNTRACK(self);
+
318
+ if (_PyObject_GC_IS_TRACKED(self)) {
319
+ _PyObject_GC_UNTRACK(self);
320
+ }
321
322
assert(self->vm_data.code == NULL);
323
unlink_executor(self);
324
// Once unlinked it becomes impossible to invalidate an executor, so do it here.
0 commit comments