8155219: [TESTBUG] Rewrite compiler/ciReplay/TestVM.sh in java
Reviewed-by: kvn
This commit is contained in:
parent
d2b993e2ab
commit
0d6e939abf
@ -59,6 +59,7 @@ public class VMProps implements Callable<Map<String, String>> {
|
||||
map.put("vm.bits", vmBits());
|
||||
map.put("vm.flightRecorder", vmFlightRecorder());
|
||||
map.put("vm.simpleArch", vmArch());
|
||||
map.put("vm.debug", vmDebug());
|
||||
vmGC(map); // vm.gc.X = true/false
|
||||
|
||||
dump(map);
|
||||
@ -147,6 +148,13 @@ public class VMProps implements Callable<Map<String, String>> {
|
||||
return "false";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return debug level value extracted from the "jdk.debug" property.
|
||||
*/
|
||||
protected String vmDebug() {
|
||||
return "" + System.getProperty("jdk.debug").contains("debug");
|
||||
}
|
||||
|
||||
/**
|
||||
* For all existing GC sets vm.gc.X property.
|
||||
* Example vm.gc.G1=true means:
|
||||
|
Loading…
Reference in New Issue
Block a user