Skip to content

Commit 5e94b45

Browse files
tkrodriguezc-refice
authored andcommitted
[GR-61966] Dump nodeIdCount in bgv
PullRequest: graal/19991
2 parents eae9cac + bc4818f commit 5e94b45

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/graph/Graph.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ public static boolean trackNodeSourcePositionDefault(OptionValues options, Debug
278278
*/
279279
public void getDebugProperties(Map<Object, Object> properties) {
280280
properties.put("graph", toString());
281+
properties.put("nodeIdCount", nodeIdCount());
281282
}
282283

283284
/**

compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/util/args/MultiChoiceValue.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2024, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -50,7 +50,8 @@ public MultiChoiceValue(String name, T defaultValue, String help) {
5050
@Override
5151
public boolean parseValue(String arg) throws InvalidArgumentException {
5252
if (arg == null) {
53-
throw new InvalidArgumentException(getName(), "no value provided");
53+
value = defaultValue;
54+
return false;
5455
}
5556
value = choices.get(arg);
5657
if (value == null) {

0 commit comments

Comments
 (0)