8217666: gc/nvdimm/* should not be included any tiers

Reviewed-by: iignatyev, lkorinth
This commit is contained in:
Sangheon Kim 2019-01-29 11:21:43 -08:00
parent 12e769ad5a
commit b2f2e669c9
9 changed files with 22 additions and 4 deletions

View File

@ -66,7 +66,8 @@ requires.properties= \
vm.graal.enabled \
vm.compiler1.enabled \
vm.compiler2.enabled \
docker.support
docker.support \
test.vm.gc.nvdimm
# Minimum jtreg version
requiredVersion=4.2 b13

View File

@ -59,7 +59,8 @@ hotspot_misc = \
-:hotspot_compiler \
-:hotspot_gc \
-:hotspot_runtime \
-:hotspot_serviceability
-:hotspot_serviceability \
-gc/nvdimm
hotspot_native_sanity = \
native_sanity
@ -197,7 +198,7 @@ tier1_gc_2 = \
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 @@ tier1_gc_gcbasher = \
gc/stress/gcbasher/TestGCBasherWithCMS.java \
gc/stress/gcbasher/TestGCBasherWithSerial.java \
gc/stress/gcbasher/TestGCBasherWithParallel.java
tier1_gc_shenandoah = \
gc/shenandoah/options/ \
gc/shenandoah/compiler/ \

View File

@ -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
*/

View File

@ -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
*/

View File

@ -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"

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -97,6 +97,7 @@ public class VMProps implements Callable<Map<String, String>> {
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 @@ public class VMProps implements Callable<Map<String, String>> {
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.