Skip to content

Commit

Permalink
Interrupt checks should not interfere with OSR
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed Dec 17, 2023
1 parent dd78a89 commit 31f7b41
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ private Object interpretBytecode(final VirtualFrame frame, final int startPC) {
continue bytecode_loop;
}
} else if (node instanceof final AbstractUnconditionalJumpNode jumpNode) {
jumpNode.executeCheck(frame);
final int successor = jumpNode.getSuccessorIndex();
if (CompilerDirectives.hasNextTier() && successor <= pc) {
backJumpCounter.value++;
Expand All @@ -138,6 +137,11 @@ private Object interpretBytecode(final VirtualFrame frame, final int startPC) {
break bytecode_loop;
}
}
if (backJumpCounter.value % 1000 == 0) {
jumpNode.executeCheck(frame);
}
} else {
jumpNode.executeCheck(frame);
}
pc = successor;
continue bytecode_loop;
Expand Down

0 comments on commit 31f7b41

Please sign in to comment.