mirror of
https://github.com/python/cpython.git
synced 2025-09-18 06:30:38 +00:00
GH-134879: Fix INSTRUMENT_FOR_ITER
for list/tuple (#134897)
Fix INSTRUMENT_FOR_ITER for list/tuple
This commit is contained in:
parent
c600310663
commit
ce6a6371a2
3 changed files with 18 additions and 3 deletions
|
@ -3130,7 +3130,6 @@ dummy_func(
|
|||
if (PyStackRef_IsTaggedInt(null_or_index)) {
|
||||
next = _PyForIter_NextWithIndex(iter_o, null_or_index);
|
||||
if (PyStackRef_IsNull(next)) {
|
||||
null_or_index = PyStackRef_TagInt(-1);
|
||||
JUMPBY(oparg + 1);
|
||||
DISPATCH();
|
||||
}
|
||||
|
@ -3191,6 +3190,7 @@ dummy_func(
|
|||
JUMPBY(oparg + 1);
|
||||
DISPATCH();
|
||||
}
|
||||
null_or_index = PyStackRef_IncrementTaggedIntNoOverflow(null_or_index);
|
||||
INSTRUMENTED_JUMP(this_instr, next_instr, PY_MONITORING_EVENT_BRANCH_LEFT);
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue