File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
truffle/src/com.oracle.truffle.runtime/src/com/oracle/truffle/runtime/hotspot Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -483,16 +483,18 @@ public boolean bypassedReservedOop() {
483
483
}
484
484
485
485
private void installCallBoundaryMethods (HotSpotTruffleCompiler compiler ) {
486
- ResolvedJavaType type = getMetaAccess ().lookupJavaType (OptimizedCallTarget .class );
487
- for (ResolvedJavaMethod method : type .getDeclaredMethods (false )) {
488
- if (method .getAnnotation (TruffleCallBoundary .class ) != null ) {
486
+ ResolvedJavaType target = getMetaAccess ().lookupJavaType (OptimizedCallTarget .class );
487
+ for (ResolvedJavaMethod method : target .getDeclaredMethods (false )) {
488
+ if (method .getName ().equals ("callBoundary" )) {
489
+ assert method .getAnnotation (TruffleCallBoundary .class ) != null ;
489
490
if (compiler != null ) {
490
491
OptimizedCallTarget initCallTarget = initializeCallTarget ;
491
492
Objects .requireNonNull (initCallTarget );
492
493
compiler .installTruffleCallBoundaryMethod (method , initCallTarget );
493
494
} else {
494
495
setNotInlinableOrCompilable (method );
495
496
}
497
+ break ;
496
498
}
497
499
}
498
500
}
You can’t perform that action at this time.
0 commit comments