Skip to content

Commit 53c5e1d

Browse files
only clear at end
1 parent e1f1b30 commit 53c5e1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/optimizer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1715,13 +1715,13 @@ invalidate_sub_executors(_PyThreadStateImpl *tstate, _PyExecutorObject *executor
17151715
return;
17161716
}
17171717
executor->vm_data.valid = 0;
1718-
executor_clear((PyObject *)executor);
17191718
for (uint32_t i = 0; i < executor->exit_count; i++) {
17201719
_PyExecutorObject *next = executor->exits[i].executor;
17211720
if (next != tstate->jit_executor_state.cold_dynamic_executor && next != tstate->jit_executor_state.cold_executor) {
17221721
invalidate_sub_executors(tstate, next);
17231722
}
17241723
}
1724+
executor_clear((PyObject *)executor);
17251725
}
17261726

17271727
/* Invalidate all executors that depend on `obj`

0 commit comments

Comments
 (0)