[issue41670] ceval traces code differently with USE_COMPUTED_GOTOS
Mark Shannon
report at bugs.python.org
Mon Aug 31 06:01:17 EDT 2020
Mark Shannon <mark at hotpy.org> added the comment:
A couple of things to fix here.
Firstly, the PREDICTion of POP_BLOCK in FOR_ITER shouldn't be there. POP_BLOCK doesn't normally occur after a loop and hasn't since we removed "pseudo exceptions" from the interpreter a couple of years ago.
Secondly, there is the issue of PREDICTs skipping tracing.
Either we can make sure that no PREDICTs cross a line boundary, which seems error prone, or we add the check for tracing into the PREDICT macro, which seems more robust.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41670>
_______________________________________
More information about the Python-bugs-list
mailing list