Skip to content

Commit 18a35d1

Browse files
committed
Report loop count on exceptions
1 parent 7e5c352 commit 18a35d1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/bytecode/PBytecodeRootNode.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1435,6 +1435,9 @@ private Object executeInner(VirtualFrame virtualFrame, boolean resumingAfterOSR,
14351435
}
14361436
if (newTarget == -1) {
14371437
localFrame.setInt(bcioffset, beginBci);
1438+
if (CompilerDirectives.hasNextTier() && loopCount > 0) {
1439+
LoopNode.reportLoopCount(this, loopCount);
1440+
}
14381441
if (e == pe) {
14391442
throw pe;
14401443
} else {

0 commit comments

Comments
 (0)