8217666: gc/nvdimm/* should not be included any tiers
Reviewed-by: iignatyev, lkorinth
--- a/test/hotspot/jtreg/TEST.ROOT Mon Jan 28 10:24:23 2019 +0100
+++ b/test/hotspot/jtreg/TEST.ROOT Tue Jan 29 11:21:43 2019 -0800
@@ -66,7 +66,8 @@
vm.graal.enabled \
vm.compiler1.enabled \
vm.compiler2.enabled \
- docker.support
+ docker.support \
+ test.vm.gc.nvdimm
# Minimum jtreg version
requiredVersion=4.2 b13
--- a/test/hotspot/jtreg/TEST.groups Mon Jan 28 10:24:23 2019 +0100
+++ b/test/hotspot/jtreg/TEST.groups Tue Jan 29 11:21:43 2019 -0800
@@ -59,7 +59,8 @@
-:hotspot_compiler \
-:hotspot_gc \
-:hotspot_runtime \
- -:hotspot_serviceability
+ -:hotspot_serviceability \
+ -gc/nvdimm
hotspot_native_sanity = \
native_sanity
@@ -197,7 +198,7 @@
gc_epsilon = \
gc/epsilon/ \
gc/CriticalNativeArgs.java \
- gc/stress/CriticalNativeStress.java
+ gc/stress/CriticalNativeStress.java
tier1_gc_gcold = \
gc/stress/gcold/TestGCOldWithG1.java \
@@ -210,7 +211,7 @@
gc/stress/gcbasher/TestGCBasherWithCMS.java \
gc/stress/gcbasher/TestGCBasherWithSerial.java \
gc/stress/gcbasher/TestGCBasherWithParallel.java
-
+
tier1_gc_shenandoah = \
gc/shenandoah/options/ \
gc/shenandoah/compiler/ \
--- a/test/hotspot/jtreg/gc/nvdimm/TestAllocateOldGenAt.java Mon Jan 28 10:24:23 2019 +0100
+++ b/test/hotspot/jtreg/gc/nvdimm/TestAllocateOldGenAt.java Tue Jan 29 11:21:43 2019 -0800
@@ -25,6 +25,7 @@
* @key gc
* @summary Test to check allocation of Java Heap with AllocateOldGenAt option
* @requires vm.gc=="null" & os.family != "aix"
+ * @requires test.vm.gc.nvdimm
* @library /test/lib
* @modules java.base/jdk.internal.misc
*/
--- a/test/hotspot/jtreg/gc/nvdimm/TestAllocateOldGenAtError.java Mon Jan 28 10:24:23 2019 +0100
+++ b/test/hotspot/jtreg/gc/nvdimm/TestAllocateOldGenAtError.java Tue Jan 29 11:21:43 2019 -0800
@@ -25,6 +25,7 @@
* @key gc
* @summary Test to check correct handling of non-existent directory passed to AllocateOldGenAt option
* @requires vm.gc=="null" & os.family != "aix"
+ * @requires test.vm.gc.nvdimm
* @library /test/lib
* @modules java.base/jdk.internal.misc
*/
--- a/test/hotspot/jtreg/gc/nvdimm/TestAllocateOldGenAtMultiple.java Mon Jan 28 10:24:23 2019 +0100
+++ b/test/hotspot/jtreg/gc/nvdimm/TestAllocateOldGenAtMultiple.java Tue Jan 29 11:21:43 2019 -0800
@@ -25,6 +25,7 @@
* @key gc
* @summary Test to check allocation of Java Heap with AllocateOldGenAt option. Has multiple sub-tests to cover different code paths.
* @requires vm.gc=="null" & os.family != "aix"
+ * @requires test.vm.gc.nvdimm
* @library /test/lib
* @modules java.base/jdk.internal.misc
* @requires vm.bits == "64"
--- a/test/hotspot/jtreg/gc/nvdimm/TestHumongousObjectsOnNvdimm.java Mon Jan 28 10:24:23 2019 +0100
+++ b/test/hotspot/jtreg/gc/nvdimm/TestHumongousObjectsOnNvdimm.java Tue Jan 29 11:21:43 2019 -0800
@@ -26,6 +26,7 @@
* @summary Check that humongous objects reside in nv-dimm
* @library /test/lib /
* @requires vm.gc=="null" & os.family != "aix"
+ * @requires test.vm.gc.nvdimm
* @build sun.hotspot.WhiteBox
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
* @run main TestHumongousObjectsOnNvdimm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
--- a/test/hotspot/jtreg/gc/nvdimm/TestOldObjectsOnNvdimm.java Mon Jan 28 10:24:23 2019 +0100
+++ b/test/hotspot/jtreg/gc/nvdimm/TestOldObjectsOnNvdimm.java Tue Jan 29 11:21:43 2019 -0800
@@ -25,6 +25,7 @@
* @test TestOldObjectsOnNvdimm
* @summary Check that objects in old generation reside in dram.
* @requires vm.gc=="null" & os.family != "aix"
+ * @requires test.vm.gc.nvdimm
* @library /test/lib
* @build sun.hotspot.WhiteBox
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/test/hotspot/jtreg/gc/nvdimm/TestYoungObjectsOnDram.java Mon Jan 28 10:24:23 2019 +0100
+++ b/test/hotspot/jtreg/gc/nvdimm/TestYoungObjectsOnDram.java Tue Jan 29 11:21:43 2019 -0800
@@ -25,6 +25,7 @@
* @test TestYoungObjectsOnDram
* @summary Check that objects in young generation reside in dram.
* @requires vm.gc=="null" & os.family != "aix"
+ * @requires test.vm.gc.nvdimm
* @library /test/lib
* @build sun.hotspot.WhiteBox
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- 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.