Skip to content

Commit 889a5b6

Browse files
gilles-duboscqentlicher
authored andcommitted
endBCI is larger than method's last BCI.
1 parent be3ccbb commit 889a5b6

File tree

1 file changed

+1
-1
lines changed
  • espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/runtime

1 file changed

+1
-1
lines changed

espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/runtime/JDWPContextImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ public int getNextBCI(MethodRef method, Node rawNode, Frame frame) {
659659
if (bci >= 0) {
660660
BytecodeStream bs = new BytecodeStream(method.getOriginalCode());
661661
int nextBci = bs.nextBCI(bci);
662-
if (nextBci <= bs.endBCI()) {
662+
if (nextBci < bs.endBCI()) {
663663
// Use the next only if it's in bounds.
664664
bci = nextBci;
665665
}

0 commit comments

Comments
 (0)