Skip to content

Commit 600c75a

Browse files
committed
[GR-51153] PEGraphDecoder#handleInvokeWithCallTarget check for a method from an unlinked class is no more valid.
1 parent 4d1211a commit 600c75a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/replacements/PEGraphDecoder.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,7 @@ protected LoopScope handleInvokeWithCallTarget(PEMethodScope methodScope, LoopSc
999999
}
10001000
callTarget = trySimplifyCallTarget(methodScope, invokeData, methodCall);
10011001
ResolvedJavaMethod targetMethod = callTarget.targetMethod();
1002-
if (forceLink && targetMethod.hasBytecodes() && targetMethod.getCode() == null && !targetMethod.getDeclaringClass().isLinked()) {
1002+
if (forceLink && targetMethod.getCodeSize() == -1) {
10031003
targetMethod.getDeclaringClass().link();
10041004
}
10051005
LoopScope inlineLoopScope = trySimplifyInvoke(methodScope, loopScope, invokeData, (MethodCallTargetNode) callTarget);

0 commit comments

Comments
 (0)