Skip to content

Commit ab2d3a8

Browse files
committed
[GR-59117] Fix missing state for StoreIndexedNode.
PullRequest: graal/19157
2 parents 8646e46 + d28c541 commit ab2d3a8

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)