Skip to content

Commit

Permalink
A stray JUMP_BACKWARD also ends the trace
Browse files Browse the repository at this point in the history
  • Loading branch information
gvanrossum committed Jul 7, 2023
1 parent 80690c9 commit c87f9d6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Python/optimizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -459,9 +459,11 @@ translate_bytecode_to_trace(
&& trace_length + 3 <= max_length)
{
ADD_TO_TRACE(JUMP_TO_TOP, 0);
goto done;
}
// Else fall through!
else {
DPRINTF(2, "JUMP_BACKWARD not to top ends trace\n");
}
goto done;
}
default:
{
Expand Down

0 comments on commit c87f9d6

Please sign in to comment.