8170226: Implement setting jtreg @requires property vm.jvmci

Reviewed-by: kvn
This commit is contained in:
Igor Ignatyev 2016-11-25 11:55:33 +03:00
parent 1d62b59444
commit d63b1299f7

@ -61,6 +61,7 @@ public class VMProps implements Callable<Map<String, String>> {
map.put("vm.flightRecorder", vmFlightRecorder());
map.put("vm.simpleArch", vmArch());
map.put("vm.debug", vmDebug());
map.put("vm.jvmci", vmJvmci());
vmGC(map); // vm.gc.X = true/false
VMProps.dump(map);
@ -156,6 +157,14 @@ public class VMProps implements Callable<Map<String, String>> {
return "" + System.getProperty("jdk.debug").contains("debug");
}
/**
* @return true if VM supports JVMCI and false otherwise
*/
protected String vmJvmci() {
// builds with jvmci have this flag
return "" + (WB.getBooleanVMFlag("EnableJVMCI") != null);
}
/**
* For all existing GC sets vm.gc.X property.
* Example vm.gc.G1=true means: