summaryrefslogtreecommitdiffstats
path: root/Python/executor_cases.c.h
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2024-05-02 15:17:59 (GMT)
committerGitHub <noreply@github.com>2024-05-02 15:17:59 (GMT)
commit72867c962cc59c6d56805f86530696bea6beb039 (patch)
tree239f9333f2e1f355387f41ce2443a786de04afc9 /Python/executor_cases.c.h
parent9789440de387219bb7677fe0d66860aa8c9deb02 (diff)
downloadcpython-72867c962cc59c6d56805f86530696bea6beb039.zip
cpython-72867c962cc59c6d56805f86530696bea6beb039.tar.gz
cpython-72867c962cc59c6d56805f86530696bea6beb039.tar.bz2
GH-118095: Unify the behavior of tier 2 FOR_ITER branch micro-ops (GH-118420)
* Target _FOR_ITER_TIER_TWO at POP_TOP following the matching END_FOR * Modify _GUARD_NOT_EXHAUSTED_RANGE, _GUARD_NOT_EXHAUSTED_LIST and _GUARD_NOT_EXHAUSTED_TUPLE so that they also target the POP_TOP following the matching END_FOR
Diffstat (limited to 'Python/executor_cases.c.h')
-rw-r--r--Python/executor_cases.c.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/Python/executor_cases.c.h b/Python/executor_cases.c.h
index f97f279..03db9b6 100644
--- a/Python/executor_cases.c.h
+++ b/Python/executor_cases.c.h
@@ -2664,9 +2664,7 @@
_PyErr_Clear(tstate);
}
/* iterator ended normally */
- Py_DECREF(iter);
- STACK_SHRINK(1);
- /* The translator sets the deopt target just past END_FOR */
+ /* The translator sets the deopt target just past the matching END_FOR */
if (true) {
UOP_STAT_INC(uopcode, miss);
JUMP_TO_JUMP_TARGET();