Skip to content

Commit 995f04d

Browse files
authored
Merge pull request #22227 from nbhuiyan/nph-invokehandle
Enable peeking ILGen for methods with invokedynamic/invokehandle
2 parents b867e08 + 61a59f0 commit 995f04d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

runtime/compiler/optimizer/J9EstimateCodeSize.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -982,6 +982,9 @@ TR_J9EstimateCodeSize::processBytecodeAndGenerateCFG(TR_CallTarget *calltarget,
982982
break;
983983
case J9BCinvokedynamic:
984984
case J9BCinvokehandle:
985+
nph.setNeedsPeekingToTrue();
986+
heuristicTrace(tracer(), "Depth %d: Enabled peeking ILGen for method %s due to invokedynamic/invokehandle bytecode at bc index %d.", _recursionDepth, callerName, i);
987+
// intentional fallthrough
985988
case J9BCinvokehandlegeneric:
986989
// TODO:JSR292: Use getResolvedHandleMethod
987990
case J9BCmonitorenter:

0 commit comments

Comments
 (0)