Skip to content

Commit

Permalink
[jsr292] Don't inline invokeBasic
Browse files Browse the repository at this point in the history
invokeBasic is native method, thus it cannot be inlined
  • Loading branch information
zakkak committed Jul 10, 2018
1 parent 52ccedf commit 3ab6ca3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions com.oracle.max.c1x/src/com/sun/c1x/graph/GraphBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -1842,6 +1842,9 @@ private boolean checkInliningConditions(RiMethod method) {
}
}
}
if (target.codeSize() == 0 && target.name().equals("invokeBasic")) {
return cannotInline(target, "invokeBasic cannot be inlined yet");
}
return true;
}

Expand Down

0 comments on commit 3ab6ca3

Please sign in to comment.