Skip to content

Commit d28c541

Browse files
committed
Fix missing state for StoreIndexedNode.
1 parent c6e7912 commit d28c541

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/phases/AnalysisGraphBuilderPhase.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,8 @@ protected void genInvokeDynamic(int cpi, int opcode) {
254254
*/
255255
invokeExactArguments[i] = append(BoxNode.create(invokeExactArguments[i], getMetaAccess().lookupJavaType(stackKind.toBoxedJavaClass()), stackKind));
256256
}
257-
append(new StoreIndexedNode(newArrayNode, ConstantNode.forInt(i, getGraph()), null, null, JavaKind.Object, invokeExactArguments[i]));
257+
var storeIndexed = add(new StoreIndexedNode(newArrayNode, ConstantNode.forInt(i, getGraph()), null, null, JavaKind.Object, invokeExactArguments[i]));
258+
storeIndexed.stateAfter().invalidateForDeoptimization();
258259
}
259260
ValueNode[] invokeArguments = new ValueNode[]{methodHandleNode, newArrayNode};
260261

0 commit comments

Comments
 (0)