Skip to content

Commit a592796

Browse files
committed
Format equal snippet runtime assertion messages in jargraal/libgraal.
1 parent d9910dd commit a592796

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/hotspot/replacements/AssertionSnippets.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public void lower(AssertionNode assertionNode, LoweringTool tool) {
9090
Arguments args = new Arguments(graph.start() instanceof StubStartNode ? stubAssertion : assertion, graph, tool.getLoweringStage());
9191
args.add("condition", assertionNode.condition());
9292
args.add("message",
93-
graph.unique(new ConstantNode(new CStringConstant("failed runtime assertion in snippet/stub: " + assertionNode.message() + " (" + graph.method() + ")"),
93+
graph.unique(new ConstantNode(new CStringConstant("failed runtime assertion in snippet/stub: " + assertionNode.message() + " (" + graph.method().format("%H.%n(%p)") + ")"),
9494
StampFactory.pointer())));
9595
args.add("l1", assertionNode.getL1());
9696
args.add("l2", assertionNode.getL2());

0 commit comments

Comments
 (0)