Skip to content

Commit 4b4f824

Browse files
committed
Use PLAIN memory ordering for write in VaListInitialization in RISC-V
1 parent 393775d commit 4b4f824

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/graal/snippets/riscv64/PosixRISCV64VaListSnippets.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public void lower(VaListInitializationNode node, LoweringTool tool) {
139139
stackValueNode.setStateAfter(graph.add(new FrameState(BytecodeFrame.UNKNOWN_BCI)));
140140

141141
OffsetAddressNode address = graph.unique(new OffsetAddressNode(stackValueNode, graph.unique(ConstantNode.forLong(0))));
142-
WriteNode writeNode = graph.add(new WriteNode(address, LocationIdentity.any(), node.getVaList(), BarrierType.NONE, MemoryOrderMode.VOLATILE));
142+
WriteNode writeNode = graph.add(new WriteNode(address, LocationIdentity.any(), node.getVaList(), BarrierType.NONE, MemoryOrderMode.PLAIN));
143143

144144
FixedNode successor = node.next();
145145
node.replaceAndDelete(stackValueNode);

0 commit comments

Comments
 (0)