Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix
  • Loading branch information
ashm-dev committed Dec 12, 2025
commit a166b47d89cf2751a45eb7c1f1970f38abce2500
6 changes: 5 additions & 1 deletion Python/optimizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,11 @@ add_to_pending_deletion_list(_PyExecutorObject *self)
static void
uop_dealloc(PyObject *op) {
_PyExecutorObject *self = _PyExecutorObject_CAST(op);
_PyObject_GC_UNTRACK(self);

if (_PyObject_GC_IS_TRACKED(self)) {
_PyObject_GC_UNTRACK(self);
}

assert(self->vm_data.code == NULL);
unlink_executor(self);
// Once unlinked it becomes impossible to invalidate an executor, so do it here.
Expand Down
Loading