File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -578,7 +578,7 @@ translate_bytecode_to_trace(
578
578
uint32_t oparg = instr -> op .arg ;
579
579
580
580
if (!progress_needed && instr == initial_instr ) {
581
- // We have looped round to the start
581
+ // We have looped around to the start:
582
582
RESERVE (1 );
583
583
ADD_TO_TRACE (_JUMP_TO_TOP , 0 , 0 , 0 );
584
584
goto done ;
@@ -618,11 +618,13 @@ translate_bytecode_to_trace(
618
618
}
619
619
620
620
if (OPCODE_HAS_EXIT (opcode )) {
621
- // Make space for exit code
621
+ // Make space for side exit and final _EXIT_TRACE:
622
+ RESERVE_RAW (2 , "_EXIT_TRACE" );
622
623
max_length -- ;
623
624
}
624
625
if (OPCODE_HAS_ERROR (opcode )) {
625
- // Make space for error code
626
+ // Make space for error stub and final _EXIT_TRACE:
627
+ RESERVE_RAW (2 , "_ERROR_POP_N" );
626
628
max_length -- ;
627
629
}
628
630
switch (opcode ) {
@@ -669,6 +671,7 @@ translate_bytecode_to_trace(
669
671
670
672
case JUMP_BACKWARD :
671
673
ADD_TO_TRACE (_CHECK_PERIODIC , 0 , 0 , target );
674
+ _Py_FALLTHROUGH ;
672
675
case JUMP_BACKWARD_NO_INTERRUPT :
673
676
{
674
677
instr += 1 + _PyOpcode_Caches [_PyOpcode_Deopt [opcode ]] - (int )oparg ;
You can’t perform that action at this time.
0 commit comments