8185436: jtreg: introduce @requires property to disable cds tests
Reviewed-by: jiangli, mseledtsov, iklam
This commit is contained in:
parent
11598ea67a
commit
f399078a51
@ -71,6 +71,8 @@ public class VMProps implements Callable<Map<String, String>> {
|
||||
map.put("vm.rtm.cpu", vmRTMCPU());
|
||||
map.put("vm.rtm.os", vmRTMOS());
|
||||
map.put("vm.aot", vmAOT());
|
||||
// vm.cds is true if the VM is compiled with cds support.
|
||||
map.put("vm.cds", vmCDS());
|
||||
vmGC(map); // vm.gc.X = true/false
|
||||
|
||||
VMProps.dump(map);
|
||||
@ -277,6 +279,19 @@ public class VMProps implements Callable<Map<String, String>> {
|
||||
return "" + Files.exists(jaotc);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check for CDS support.
|
||||
*
|
||||
* @return true if CDS is supported by the VM to be tested.
|
||||
*/
|
||||
protected String vmCDS() {
|
||||
if (WB.isCDSIncludedInVmBuild()) {
|
||||
return "true";
|
||||
} else {
|
||||
return "false";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Dumps the map to the file if the file name is given as the property.
|
||||
* This functionality could be helpful to know context in the real
|
||||
|
@ -523,6 +523,7 @@ public class WhiteBox {
|
||||
public native boolean isShared(Object o);
|
||||
public native boolean isSharedClass(Class<?> c);
|
||||
public native boolean areSharedStringsIgnored();
|
||||
public native boolean isCDSIncludedInVmBuild();
|
||||
|
||||
// Compiler Directive
|
||||
public native int addCompilerDirective(String compDirect);
|
||||
|
Loading…
Reference in New Issue
Block a user