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 9db8638 commit d0d495fCopy full SHA for d0d495f
Python/optimizer.c
@@ -1675,7 +1675,9 @@ executor_clear(PyObject *op)
1675
executor->exits[i].temperature = initial_unreachable_backoff_counter();
1676
_PyExecutorObject *e = executor->exits[i].executor;
1677
executor->exits[i].executor = NULL;
1678
- if (e != cold && e != cold_dynamic) {
+ // Only clear side exit executors in the chain, not
1679
+ // those that have progress (inserted into bytecode).
1680
+ if (e != cold && e != cold_dynamic && e->vm_data.code != NULL) {
1681
executor_clear((PyObject *)e);
1682
}
1683
0 commit comments