--- a/test/jtreg-ext/requires/VMProps.java Mon Jan 28 10:24:23 2019 +0100
+++ b/test/jtreg-ext/requires/VMProps.java Tue Jan 29 11:21:43 2019 -0800
@@ -97,6 +97,7 @@
map.put("vm.compiler2.enabled", isCompiler2Enabled());
map.put("docker.support", dockerSupport());
map.put("release.implementor", implementor());
+ map.put("test.vm.gc.nvdimm", isNvdimmTestEnabled());
vmGC(map); // vm.gc.X = true/false
vmOptFinalFlags(map);
@@ -469,6 +470,15 @@
return null;
}
+ private String isNvdimmTestEnabled() {
+ String isEnbled = System.getenv("TEST_VM_GC_NVDIMM");
+ if (isEnbled != null && isEnbled.toLowerCase().equals("true")) {
+ return "true";
+ }
+ return "false";
+ }
+
+
/**
* Dumps the map to the file if the file name is given as the property.