Skip to content

Commit

Permalink
Check for interrupts once per compilation unit
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed Apr 7, 2020
1 parent b7a8dd7 commit 5e0eb79
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static InterruptHandlerNode create(final CompiledCodeObject code, final b
}

public void executeTrigger(final VirtualFrame frame) {
if (!istate.isActive()) {
if (CompilerDirectives.inCompiledCode() && !CompilerDirectives.inCompilationRoot() || !istate.isActive()) {
return;
}
isActiveProfile.enter();
Expand Down

0 comments on commit 5e0eb79

Please sign in to comment.