diff --git a/test/hotspot/jtreg/gc/epsilon/TestAlignment.java b/test/hotspot/jtreg/gc/epsilon/TestAlignment.java index e4328f5ac4d1e..c4eb329d3f608 100644 --- a/test/hotspot/jtreg/gc/epsilon/TestAlignment.java +++ b/test/hotspot/jtreg/gc/epsilon/TestAlignment.java @@ -28,10 +28,24 @@ * @requires vm.gc.Epsilon * @summary Check Epsilon runs fine with (un)usual alignments * @bug 8212005 - * @run main/othervm -XX:+UnlockExperimentalVMOptions -Xmx128m -XX:+UseEpsilonGC -XX:+UseTLAB gc.epsilon.TestAlignment - * @run main/othervm -XX:+UnlockExperimentalVMOptions -Xmx128m -XX:+UseEpsilonGC -XX:-UseTLAB gc.epsilon.TestAlignment - * @run main/othervm -XX:+UnlockExperimentalVMOptions -Xmx128m -XX:+UseEpsilonGC -XX:+UseTLAB -XX:+IgnoreUnrecognizedVMOptions -XX:ObjectAlignmentInBytes=16 gc.epsilon.TestAlignment - * @run main/othervm -XX:+UnlockExperimentalVMOptions -Xmx128m -XX:+UseEpsilonGC -XX:-UseTLAB -XX:+IgnoreUnrecognizedVMOptions -XX:ObjectAlignmentInBytes=16 gc.epsilon.TestAlignment + * + * @run main/othervm -Xmx64m -XX:+UseTLAB + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestAlignment + * + * @run main/othervm -Xmx64m -XX:-UseTLAB + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestAlignment + * + * @run main/othervm -Xmx64m -XX:+UseTLAB + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * -XX:+IgnoreUnrecognizedVMOptions -XX:ObjectAlignmentInBytes=16 + * gc.epsilon.TestAlignment + * + * @run main/othervm -Xmx64m -XX:-UseTLAB + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * -XX:+IgnoreUnrecognizedVMOptions -XX:ObjectAlignmentInBytes=16 + * gc.epsilon.TestAlignment */ public class TestAlignment { diff --git a/test/hotspot/jtreg/gc/epsilon/TestAlwaysPretouch.java b/test/hotspot/jtreg/gc/epsilon/TestAlwaysPretouch.java index 75b0edf0058fb..b8ac4c802e4a9 100644 --- a/test/hotspot/jtreg/gc/epsilon/TestAlwaysPretouch.java +++ b/test/hotspot/jtreg/gc/epsilon/TestAlwaysPretouch.java @@ -24,13 +24,31 @@ /** * @test TestAlwaysPretouch * @requires vm.gc.Epsilon - * @summary Basic sanity test for Epsilon - * @run main/othervm -Xms128m -Xmx1g -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestAlwaysPretouch - * @run main/othervm -Xms128m -Xmx1g -XX:-AlwaysPreTouch -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestAlwaysPretouch - * @run main/othervm -Xms128m -Xmx1g -XX:+AlwaysPreTouch -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestAlwaysPretouch - * @run main/othervm -Xmx1g -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestAlwaysPretouch - * @run main/othervm -Xmx1g -XX:-AlwaysPreTouch -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestAlwaysPretouch - * @run main/othervm -Xmx1g -XX:+AlwaysPreTouch -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestAlwaysPretouch + * @summary Test that pre-touch works + * + * @run main/othervm -Xms64m -Xmx256m + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestAlwaysPretouch + * + * @run main/othervm -Xms64m -Xmx256m -XX:-AlwaysPreTouch + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestAlwaysPretouch + * + * @run main/othervm -Xms64m -Xmx256m -XX:+AlwaysPreTouch + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestAlwaysPretouch + * + * @run main/othervm -Xmx256m + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestAlwaysPretouch + * + * @run main/othervm -Xmx256m -XX:-AlwaysPreTouch + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestAlwaysPretouch + * + * @run main/othervm -Xmx256m -XX:+AlwaysPreTouch + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestAlwaysPretouch */ package gc.epsilon; diff --git a/test/hotspot/jtreg/gc/epsilon/TestArraycopyCheckcast.java b/test/hotspot/jtreg/gc/epsilon/TestArraycopyCheckcast.java index ca9eaf6d7d9ca..632137b644cbc 100644 --- a/test/hotspot/jtreg/gc/epsilon/TestArraycopyCheckcast.java +++ b/test/hotspot/jtreg/gc/epsilon/TestArraycopyCheckcast.java @@ -30,11 +30,24 @@ * @library /test/lib * @bug 8215724 * - * @run main/othervm -Xmx1g -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestArraycopyCheckcast - * @run main/othervm -Xmx1g -Xint -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestArraycopyCheckcast - * @run main/othervm -Xmx1g -Xbatch -Xcomp -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestArraycopyCheckcast - * @run main/othervm -Xmx1g -Xbatch -Xcomp -XX:TieredStopAtLevel=1 -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestArraycopyCheckcast - * @run main/othervm -Xmx1g -Xbatch -Xcomp -XX:-TieredCompilation -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestArraycopyCheckcast + * @run main/othervm -Xmx256m + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestArraycopyCheckcast + * + * @run main/othervm -Xmx256m + * -Xint + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestArraycopyCheckcast + * + * @run main/othervm -Xmx256m + * -Xbatch -Xcomp -XX:TieredStopAtLevel=1 + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestArraycopyCheckcast + * + * @run main/othervm -Xmx256m + * -Xbatch -Xcomp -XX:-TieredCompilation + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestArraycopyCheckcast */ public class TestArraycopyCheckcast { diff --git a/test/hotspot/jtreg/gc/epsilon/TestByteArrays.java b/test/hotspot/jtreg/gc/epsilon/TestByteArrays.java index 79219566b8895..fac70baeda08c 100644 --- a/test/hotspot/jtreg/gc/epsilon/TestByteArrays.java +++ b/test/hotspot/jtreg/gc/epsilon/TestByteArrays.java @@ -26,28 +26,54 @@ /** * @test TestByteArrays * @key randomness - * @requires vm.gc.Epsilon & os.maxMemory > 1G + * @requires vm.gc.Epsilon * @summary Epsilon is able to allocate arrays, and does not corrupt their state * @library /test/lib * - * @run main/othervm -Xmx1g -XX:+UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestByteArrays - * @run main/othervm -Xmx1g -Xint -XX:+UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestByteArrays - * @run main/othervm -Xmx1g -Xbatch -Xcomp -XX:+UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestByteArrays - * @run main/othervm -Xmx1g -Xbatch -Xcomp -XX:TieredStopAtLevel=1 -XX:+UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestByteArrays - * @run main/othervm -Xmx1g -Xbatch -Xcomp -XX:-TieredCompilation -XX:+UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestByteArrays + * @run main/othervm -XX:+UseTLAB -Xmx256m + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestByteArrays * - * @run main/othervm -Xmx1g -XX:-UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestByteArrays - * @run main/othervm -Xmx1g -Xint -XX:-UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestByteArrays - * @run main/othervm -Xmx1g -Xbatch -Xcomp -XX:-UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestByteArrays - * @run main/othervm -Xmx1g -Xbatch -Xcomp -XX:TieredStopAtLevel=1 -XX:-UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestByteArrays - * @run main/othervm -Xmx1g -Xbatch -Xcomp -XX:-TieredCompilation -XX:-UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestByteArrays + * @run main/othervm -XX:+UseTLAB -Xmx256m + * -Xint + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestByteArrays + * + * @run main/othervm -XX:+UseTLAB -Xmx256m + * -Xbatch -Xcomp -XX:TieredStopAtLevel=1 + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestByteArrays + * + * @run main/othervm -XX:+UseTLAB -Xmx256m + * -Xbatch -Xcomp -XX:-TieredCompilation + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestByteArrays + * + * @run main/othervm -XX:-UseTLAB -Xmx256m + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestByteArrays + * + * @run main/othervm -XX:-UseTLAB -Xmx256m + * -Xint + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestByteArrays + * + * @run main/othervm -XX:-UseTLAB -Xmx256m + * -Xbatch -Xcomp -XX:TieredStopAtLevel=1 + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestByteArrays + * + * @run main/othervm -XX:-UseTLAB -Xmx256m + * -Xbatch -Xcomp -XX:-TieredCompilation + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestByteArrays */ import java.util.Random; import jdk.test.lib.Utils; public class TestByteArrays { - static int COUNT = Integer.getInteger("count", 3000); // ~500 MB allocation + static int COUNT = Integer.getInteger("count", 500); // ~100 MB allocation static byte[][] arr; diff --git a/test/hotspot/jtreg/gc/epsilon/TestClasses.java b/test/hotspot/jtreg/gc/epsilon/TestClasses.java index 5f0ae333f11e4..aa081eeaf6588 100644 --- a/test/hotspot/jtreg/gc/epsilon/TestClasses.java +++ b/test/hotspot/jtreg/gc/epsilon/TestClasses.java @@ -31,7 +31,10 @@ * @modules java.base/jdk.internal.org.objectweb.asm * java.base/jdk.internal.misc * - * @run main/othervm -Xmx1g -XX:MetaspaceSize=1m -XX:MaxMetaspaceSize=64m -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -Xlog:gc -Xlog:gc+metaspace gc.epsilon.TestClasses + * @run main/othervm -Xmx256m + * -XX:MetaspaceSize=1m -XX:MaxMetaspaceSize=64m -Xlog:gc -Xlog:gc+metaspace + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestClasses */ import jdk.internal.org.objectweb.asm.ClassWriter; diff --git a/test/hotspot/jtreg/gc/epsilon/TestDieDefault.java b/test/hotspot/jtreg/gc/epsilon/TestDieDefault.java index b8a72660aaff5..a883eb9f27c44 100644 --- a/test/hotspot/jtreg/gc/epsilon/TestDieDefault.java +++ b/test/hotspot/jtreg/gc/epsilon/TestDieDefault.java @@ -53,31 +53,24 @@ public static void failWith(String... args) throws Exception { } public static void main(String[] args) throws Exception { - passWith("-Xmx128m", + passWith("-Xmx64m", "-XX:+UnlockExperimentalVMOptions", "-XX:+UseEpsilonGC", "-Dcount=1", TestDieDefault.Workload.class.getName()); - failWith("-Xmx128m", + failWith("-Xmx64m", "-XX:+UnlockExperimentalVMOptions", "-XX:+UseEpsilonGC", TestDieDefault.Workload.class.getName()); - failWith("-Xmx128m", + failWith("-Xmx64m", "-Xint", "-XX:+UnlockExperimentalVMOptions", "-XX:+UseEpsilonGC", TestDieDefault.Workload.class.getName()); - failWith("-Xmx128m", - "-Xbatch", - "-Xcomp", - "-XX:+UnlockExperimentalVMOptions", - "-XX:+UseEpsilonGC", - TestDieDefault.Workload.class.getName()); - - failWith("-Xmx128m", + failWith("-Xmx64m", "-Xbatch", "-Xcomp", "-XX:TieredStopAtLevel=1", @@ -85,7 +78,7 @@ public static void main(String[] args) throws Exception { "-XX:+UseEpsilonGC", TestDieDefault.Workload.class.getName()); - failWith("-Xmx128m", + failWith("-Xmx64m", "-Xbatch", "-Xcomp", "-XX:-TieredCompilation", diff --git a/test/hotspot/jtreg/gc/epsilon/TestDieWithHeapDump.java b/test/hotspot/jtreg/gc/epsilon/TestDieWithHeapDump.java index b1df98c9adedb..c717b49333025 100644 --- a/test/hotspot/jtreg/gc/epsilon/TestDieWithHeapDump.java +++ b/test/hotspot/jtreg/gc/epsilon/TestDieWithHeapDump.java @@ -59,35 +59,27 @@ public static void failWith(String... args) throws Exception { } public static void main(String[] args) throws Exception { - passWith("-Xmx128m", + passWith("-Xmx64m", "-XX:+UnlockExperimentalVMOptions", "-XX:+UseEpsilonGC", "-Dcount=1", "-XX:+HeapDumpOnOutOfMemoryError", TestDieWithHeapDump.Workload.class.getName()); - failWith("-Xmx128m", + failWith("-Xmx64m", "-XX:+UnlockExperimentalVMOptions", "-XX:+UseEpsilonGC", "-XX:+HeapDumpOnOutOfMemoryError", TestDieWithHeapDump.Workload.class.getName()); - failWith("-Xmx128m", + failWith("-Xmx64m", "-Xint", "-XX:+UnlockExperimentalVMOptions", "-XX:+UseEpsilonGC", "-XX:+HeapDumpOnOutOfMemoryError", TestDieWithHeapDump.Workload.class.getName()); - failWith("-Xmx128m", - "-Xbatch", - "-Xcomp", - "-XX:+UnlockExperimentalVMOptions", - "-XX:+UseEpsilonGC", - "-XX:+HeapDumpOnOutOfMemoryError", - TestDieWithHeapDump.Workload.class.getName()); - - failWith("-Xmx128m", + failWith("-Xmx64m", "-Xbatch", "-Xcomp", "-XX:TieredStopAtLevel=1", @@ -96,7 +88,7 @@ public static void main(String[] args) throws Exception { "-XX:+HeapDumpOnOutOfMemoryError", TestDieWithHeapDump.Workload.class.getName()); - failWith("-Xmx128m", + failWith("-Xmx64m", "-Xbatch", "-Xcomp", "-XX:-TieredCompilation", diff --git a/test/hotspot/jtreg/gc/epsilon/TestDieWithOnError.java b/test/hotspot/jtreg/gc/epsilon/TestDieWithOnError.java index c87658e3eeac7..2cac3843b0e55 100644 --- a/test/hotspot/jtreg/gc/epsilon/TestDieWithOnError.java +++ b/test/hotspot/jtreg/gc/epsilon/TestDieWithOnError.java @@ -57,35 +57,27 @@ public static void failWith(String... args) throws Exception { } public static void main(String[] args) throws Exception { - passWith("-Xmx128m", + passWith("-Xmx64m", "-XX:+UnlockExperimentalVMOptions", "-XX:+UseEpsilonGC", "-Dcount=1", "-XX:OnOutOfMemoryError=echo " + ON_ERR_MSG, TestDieWithOnError.Workload.class.getName()); - failWith("-Xmx128m", + failWith("-Xmx64m", "-XX:+UnlockExperimentalVMOptions", "-XX:+UseEpsilonGC", "-XX:OnOutOfMemoryError=echo " + ON_ERR_MSG, TestDieWithOnError.Workload.class.getName()); - failWith("-Xmx128m", + failWith("-Xmx64m", "-Xint", "-XX:+UnlockExperimentalVMOptions", "-XX:+UseEpsilonGC", "-XX:OnOutOfMemoryError=echo " + ON_ERR_MSG, TestDieWithOnError.Workload.class.getName()); - failWith("-Xmx128m", - "-Xbatch", - "-Xcomp", - "-XX:+UnlockExperimentalVMOptions", - "-XX:+UseEpsilonGC", - "-XX:OnOutOfMemoryError=echo " + ON_ERR_MSG, - TestDieWithOnError.Workload.class.getName()); - - failWith("-Xmx128m", + failWith("-Xmx64m", "-Xbatch", "-Xcomp", "-XX:TieredStopAtLevel=1", @@ -94,7 +86,7 @@ public static void main(String[] args) throws Exception { "-XX:OnOutOfMemoryError=echo " + ON_ERR_MSG, TestDieWithOnError.Workload.class.getName()); - failWith("-Xmx128m", + failWith("-Xmx64m", "-Xbatch", "-Xcomp", "-XX:-TieredCompilation", diff --git a/test/hotspot/jtreg/gc/epsilon/TestElasticTLAB.java b/test/hotspot/jtreg/gc/epsilon/TestElasticTLAB.java index 4ea46ea0dd123..6a312ac198f48 100644 --- a/test/hotspot/jtreg/gc/epsilon/TestElasticTLAB.java +++ b/test/hotspot/jtreg/gc/epsilon/TestElasticTLAB.java @@ -26,23 +26,41 @@ /** * @test TestElasticTLAB * @key randomness - * @requires vm.gc.Epsilon & os.maxMemory > 1G + * @requires vm.gc.Epsilon * @summary Epsilon is able to work with/without elastic TLABs * @library /test/lib * - * @run main/othervm -Xmx1g -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -XX:-EpsilonElasticTLAB gc.epsilon.TestElasticTLAB - * @run main/othervm -Xmx1g -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -XX:+EpsilonElasticTLAB -XX:EpsilonTLABElasticity=1 gc.epsilon.TestElasticTLAB - * @run main/othervm -Xmx1g -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -XX:+EpsilonElasticTLAB -XX:EpsilonTLABElasticity=1.1 gc.epsilon.TestElasticTLAB - * @run main/othervm -Xmx1g -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -XX:+EpsilonElasticTLAB -XX:EpsilonTLABElasticity=2.0 gc.epsilon.TestElasticTLAB - * @run main/othervm -Xmx1g -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -XX:+EpsilonElasticTLAB -XX:EpsilonTLABElasticity=42 gc.epsilon.TestElasticTLAB - * @run main/othervm -Xmx1g -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -XX:+EpsilonElasticTLAB -XX:EpsilonTLABElasticity=100 gc.epsilon.TestElasticTLAB + * @run main/othervm -Xmx256m + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * -XX:-EpsilonElasticTLAB + * gc.epsilon.TestElasticTLAB + * + * @run main/othervm -Xmx256m + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * -XX:+EpsilonElasticTLAB -XX:EpsilonTLABElasticity=1 + * gc.epsilon.TestElasticTLAB + * + * @run main/othervm -Xmx256m + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * -XX:+EpsilonElasticTLAB -XX:EpsilonTLABElasticity=1.1 + * gc.epsilon.TestElasticTLAB + * + * @run main/othervm -Xmx256m + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * -XX:+EpsilonElasticTLAB -XX:EpsilonTLABElasticity=2.0 + * gc.epsilon.TestElasticTLAB + * + * @run main/othervm -Xmx256m + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * -XX:+EpsilonElasticTLAB -XX:EpsilonTLABElasticity=100 + * gc.epsilon.TestElasticTLAB */ import java.util.Random; import jdk.test.lib.Utils; public class TestElasticTLAB { - static int COUNT = Integer.getInteger("count", 3000); // ~500 MB allocation + static int COUNT = Integer.getInteger("count", 500); // ~100 MB allocation static byte[][] arr; diff --git a/test/hotspot/jtreg/gc/epsilon/TestElasticTLABDecay.java b/test/hotspot/jtreg/gc/epsilon/TestElasticTLABDecay.java index 751f67911fca9..c81ad29c05949 100644 --- a/test/hotspot/jtreg/gc/epsilon/TestElasticTLABDecay.java +++ b/test/hotspot/jtreg/gc/epsilon/TestElasticTLABDecay.java @@ -26,20 +26,31 @@ /** * @test TestElasticTLABDecay * @key randomness - * @requires vm.gc.Epsilon & os.maxMemory > 1G - * @summary Epsilon is able to work with/without elastic TLABs + * @requires vm.gc.Epsilon + * @summary Epsilon is able to work with/without elastic TLABs decay * @library /test/lib * - * @run main/othervm -Xmx1g -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -XX:+EpsilonElasticTLAB -XX:-EpsilonElasticTLABDecay gc.epsilon.TestElasticTLABDecay - * @run main/othervm -Xmx1g -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -XX:+EpsilonElasticTLAB -XX:+EpsilonElasticTLABDecay -XX:EpsilonTLABDecayTime=1 gc.epsilon.TestElasticTLABDecay - * @run main/othervm -Xmx1g -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -XX:+EpsilonElasticTLAB -XX:+EpsilonElasticTLABDecay -XX:EpsilonTLABDecayTime=100 gc.epsilon.TestElasticTLABDecay + * @run main/othervm -Xmx256m + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * -XX:+EpsilonElasticTLAB -XX:-EpsilonElasticTLABDecay + * gc.epsilon.TestElasticTLABDecay + * + * @run main/othervm -Xmx256m + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * -XX:+EpsilonElasticTLAB -XX:+EpsilonElasticTLABDecay -XX:EpsilonTLABDecayTime=1 + * gc.epsilon.TestElasticTLABDecay + * + * @run main/othervm -Xmx256m + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * -XX:+EpsilonElasticTLAB -XX:+EpsilonElasticTLABDecay -XX:EpsilonTLABDecayTime=100 + * gc.epsilon.TestElasticTLABDecay */ import java.util.Random; import jdk.test.lib.Utils; public class TestElasticTLABDecay { - static int COUNT = Integer.getInteger("count", 3000); // ~500 MB allocation + static int COUNT = Integer.getInteger("count", 500); // ~100 MB allocation static byte[][] arr; diff --git a/test/hotspot/jtreg/gc/epsilon/TestEpsilonEnabled.java b/test/hotspot/jtreg/gc/epsilon/TestEpsilonEnabled.java index 5908ed6a29fbb..32ada0dc37340 100644 --- a/test/hotspot/jtreg/gc/epsilon/TestEpsilonEnabled.java +++ b/test/hotspot/jtreg/gc/epsilon/TestEpsilonEnabled.java @@ -28,7 +28,10 @@ * @requires vm.gc.Epsilon * @summary Basic sanity test for Epsilon * @library /test/lib - * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestEpsilonEnabled + * + * @run main/othervm -Xmx256m + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestEpsilonEnabled */ import java.lang.management.GarbageCollectorMXBean; diff --git a/test/hotspot/jtreg/gc/epsilon/TestHelloWorld.java b/test/hotspot/jtreg/gc/epsilon/TestHelloWorld.java index c045411bf56a1..9d47cc4e2920b 100644 --- a/test/hotspot/jtreg/gc/epsilon/TestHelloWorld.java +++ b/test/hotspot/jtreg/gc/epsilon/TestHelloWorld.java @@ -27,7 +27,8 @@ * @test TestHelloWorld * @requires vm.gc.Epsilon * @summary Basic sanity test for Epsilon - * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestHelloWorld + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestHelloWorld */ public class TestHelloWorld { diff --git a/test/hotspot/jtreg/gc/epsilon/TestLogTrace.java b/test/hotspot/jtreg/gc/epsilon/TestLogTrace.java index 1dcb73046e89c..c79295c3391ca 100644 --- a/test/hotspot/jtreg/gc/epsilon/TestLogTrace.java +++ b/test/hotspot/jtreg/gc/epsilon/TestLogTrace.java @@ -28,7 +28,10 @@ * @test TestLogTrace * @requires vm.gc.Epsilon * @summary Test that tracing does not crash Epsilon - * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -Xlog:gc*=trace gc.epsilon.TestLogTrace + * + * @run main/othervm -Xmx256m -Xlog:gc*=trace + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestLogTrace */ public class TestLogTrace { diff --git a/test/hotspot/jtreg/gc/epsilon/TestManyThreads.java b/test/hotspot/jtreg/gc/epsilon/TestManyThreads.java index 8d9b204482920..5a03785cae472 100644 --- a/test/hotspot/jtreg/gc/epsilon/TestManyThreads.java +++ b/test/hotspot/jtreg/gc/epsilon/TestManyThreads.java @@ -28,17 +28,43 @@ * @requires vm.gc.Epsilon * @summary Test allocations from many threads * - * @run main/othervm -Xmx128m -Xss512k -XX:-UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestManyThreads - * @run main/othervm -Xmx128m -Xss512k -Xint -XX:-UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestManyThreads - * @run main/othervm -Xmx128m -Xss512k -Xbatch -Xcomp -XX:-UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestManyThreads - * @run main/othervm -Xmx128m -Xss512k -Xbatch -Xcomp -XX:TieredStopAtLevel=1 -XX:-UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestManyThreads - * @run main/othervm -Xmx128m -Xss512k -Xbatch -Xcomp -XX:-TieredCompilation -XX:-UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestManyThreads + * @run main/othervm -XX:-UseTLAB -Xmx256m -Xss512k + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestManyThreads * - * @run main/othervm -Xmx128m -Xss512k -XX:+UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestManyThreads - * @run main/othervm -Xmx128m -Xss512k -Xint -XX:+UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestManyThreads - * @run main/othervm -Xmx128m -Xss512k -Xbatch -Xcomp -XX:+UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestManyThreads - * @run main/othervm -Xmx128m -Xss512k -Xbatch -Xcomp -XX:TieredStopAtLevel=1 -XX:+UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestManyThreads - * @run main/othervm -Xmx128m -Xss512k -Xbatch -Xcomp -XX:-TieredCompilation -XX:+UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestManyThreads + * @run main/othervm -XX:-UseTLAB -Xmx256m -Xss512k + * -Xint + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestManyThreads + * + * @run main/othervm -XX:-UseTLAB -Xmx256m -Xss512k + * -Xbatch -Xcomp -XX:TieredStopAtLevel=1 + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestManyThreads + * + * @run main/othervm -XX:-UseTLAB -Xmx256m -Xss512k + * -Xbatch -Xcomp -XX:-TieredCompilation + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestManyThreads + * + * @run main/othervm -XX:+UseTLAB -Xmx256m -Xss512k + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestManyThreads + * + * @run main/othervm -XX:+UseTLAB -Xmx256m -Xss512k + * -Xint + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestManyThreads + * + * @run main/othervm -XX:+UseTLAB -Xmx256m -Xss512k + * -Xbatch -Xcomp -XX:TieredStopAtLevel=1 + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestManyThreads + * + * @run main/othervm -XX:+UseTLAB -Xmx256m -Xss512k + * -Xbatch -Xcomp -XX:-TieredCompilation + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestManyThreads */ import java.util.concurrent.atomic.*; diff --git a/test/hotspot/jtreg/gc/epsilon/TestMaxTLAB.java b/test/hotspot/jtreg/gc/epsilon/TestMaxTLAB.java index a345af6206c18..c3ad148f01421 100644 --- a/test/hotspot/jtreg/gc/epsilon/TestMaxTLAB.java +++ b/test/hotspot/jtreg/gc/epsilon/TestMaxTLAB.java @@ -29,15 +29,49 @@ * @summary Check EpsilonMaxTLAB options * @bug 8212177 * - * @run main/othervm -XX:+UnlockExperimentalVMOptions -Xmx128m -XX:+UseEpsilonGC -XX:EpsilonMaxTLABSize=1 gc.epsilon.TestMaxTLAB - * @run main/othervm -XX:+UnlockExperimentalVMOptions -Xmx128m -XX:+UseEpsilonGC -XX:EpsilonMaxTLABSize=1K gc.epsilon.TestMaxTLAB - * @run main/othervm -XX:+UnlockExperimentalVMOptions -Xmx128m -XX:+UseEpsilonGC -XX:EpsilonMaxTLABSize=1M gc.epsilon.TestMaxTLAB - * @run main/othervm -XX:+UnlockExperimentalVMOptions -Xmx128m -XX:+UseEpsilonGC -XX:EpsilonMaxTLABSize=12345 gc.epsilon.TestMaxTLAB - * - * @run main/othervm -XX:+UnlockExperimentalVMOptions -Xmx128m -XX:+UseEpsilonGC -XX:EpsilonMaxTLABSize=1 -XX:+IgnoreUnrecognizedVMOptions -XX:ObjectAlignmentInBytes=16 gc.epsilon.TestMaxTLAB - * @run main/othervm -XX:+UnlockExperimentalVMOptions -Xmx128m -XX:+UseEpsilonGC -XX:EpsilonMaxTLABSize=1K -XX:+IgnoreUnrecognizedVMOptions -XX:ObjectAlignmentInBytes=16 gc.epsilon.TestMaxTLAB - * @run main/othervm -XX:+UnlockExperimentalVMOptions -Xmx128m -XX:+UseEpsilonGC -XX:EpsilonMaxTLABSize=1M -XX:+IgnoreUnrecognizedVMOptions -XX:ObjectAlignmentInBytes=16 gc.epsilon.TestMaxTLAB - * @run main/othervm -XX:+UnlockExperimentalVMOptions -Xmx128m -XX:+UseEpsilonGC -XX:EpsilonMaxTLABSize=12345 -XX:+IgnoreUnrecognizedVMOptions -XX:ObjectAlignmentInBytes=16 gc.epsilon.TestMaxTLAB + * @run main/othervm -Xmx64m + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * -XX:EpsilonMaxTLABSize=1 + * gc.epsilon.TestMaxTLAB + * + * @run main/othervm -Xmx64m + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * -XX:EpsilonMaxTLABSize=1K + * gc.epsilon.TestMaxTLAB + * + * @run main/othervm -Xmx64m + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * -XX:EpsilonMaxTLABSize=1M + * gc.epsilon.TestMaxTLAB + * + * @run main/othervm -Xmx64m + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * -XX:EpsilonMaxTLABSize=12345 + * gc.epsilon.TestMaxTLAB + * + * @run main/othervm -Xmx64m + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * -XX:EpsilonMaxTLABSize=1 + * -XX:+IgnoreUnrecognizedVMOptions -XX:ObjectAlignmentInBytes=16 + * gc.epsilon.TestMaxTLAB + * + * @run main/othervm -Xmx64m + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * -XX:EpsilonMaxTLABSize=1K + * -XX:+IgnoreUnrecognizedVMOptions -XX:ObjectAlignmentInBytes=16 + * gc.epsilon.TestMaxTLAB + * + * @run main/othervm -Xmx64m + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * -XX:EpsilonMaxTLABSize=1M + * -XX:+IgnoreUnrecognizedVMOptions -XX:ObjectAlignmentInBytes=16 + * gc.epsilon.TestMaxTLAB + * + * @run main/othervm -Xmx64m + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * -XX:EpsilonMaxTLABSize=12345 + * -XX:+IgnoreUnrecognizedVMOptions -XX:ObjectAlignmentInBytes=16 + * gc.epsilon.TestMaxTLAB */ public class TestMaxTLAB { diff --git a/test/hotspot/jtreg/gc/epsilon/TestMemoryMXBeans.java b/test/hotspot/jtreg/gc/epsilon/TestMemoryMXBeans.java index 597ce76f82960..a9ff8d00ba091 100644 --- a/test/hotspot/jtreg/gc/epsilon/TestMemoryMXBeans.java +++ b/test/hotspot/jtreg/gc/epsilon/TestMemoryMXBeans.java @@ -30,9 +30,21 @@ * @summary Test JMX memory beans * @modules java.base/jdk.internal.misc * java.management - * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -Xmx1g gc.epsilon.TestMemoryMXBeans -1 1024 - * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -Xms1g -Xmx1g gc.epsilon.TestMemoryMXBeans 1024 1024 - * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -Xms128m -Xmx1g gc.epsilon.TestMemoryMXBeans 128 1024 + * + * @run main/othervm -Xmx256m + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestMemoryMXBeans + * -1 256 + * + * @run main/othervm -Xmx256m -Xmx256m + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestMemoryMXBeans + * 256 256 + * + * @run main/othervm -Xms64m -Xmx256m + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestMemoryMXBeans + * 64 256 */ import java.lang.management.*; diff --git a/test/hotspot/jtreg/gc/epsilon/TestMemoryPools.java b/test/hotspot/jtreg/gc/epsilon/TestMemoryPools.java index 90b5471cb7fb4..e05a257edc70f 100644 --- a/test/hotspot/jtreg/gc/epsilon/TestMemoryPools.java +++ b/test/hotspot/jtreg/gc/epsilon/TestMemoryPools.java @@ -26,11 +26,14 @@ /** * @test TestMemoryPools - * @requires vm.gc.Epsilon & os.maxMemory >= 2G + * @requires vm.gc.Epsilon * @summary Test JMX memory pools * @modules java.base/jdk.internal.misc * java.management - * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -Xmx1g -Xms1g gc.epsilon.TestMemoryPools + * + * @run main/othervm -Xms64m -Xmx64m + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestMemoryPools */ import java.lang.management.*; diff --git a/test/hotspot/jtreg/gc/epsilon/TestObjects.java b/test/hotspot/jtreg/gc/epsilon/TestObjects.java index 7cb5c4a8ae389..a63896fd19bb3 100644 --- a/test/hotspot/jtreg/gc/epsilon/TestObjects.java +++ b/test/hotspot/jtreg/gc/epsilon/TestObjects.java @@ -30,17 +30,43 @@ * @summary Epsilon is able to allocate objects, and does not corrupt their state * @library /test/lib * - * @run main/othervm -Xmx128m -XX:+UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestObjects - * @run main/othervm -Xmx128m -Xint -XX:+UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestObjects - * @run main/othervm -Xmx128m -Xbatch -Xcomp -XX:+UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestObjects - * @run main/othervm -Xmx128m -Xbatch -Xcomp -XX:TieredStopAtLevel=1 -XX:+UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestObjects - * @run main/othervm -Xmx128m -Xbatch -Xcomp -XX:-TieredCompilation -XX:+UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestObjects + * @run main/othervm -XX:+UseTLAB -Xmx256m + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestObjects * - * @run main/othervm -Xmx128m -XX:-UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestObjects - * @run main/othervm -Xmx128m -Xint -XX:-UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestObjects - * @run main/othervm -Xmx128m -Xbatch -Xcomp -XX:-UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestObjects - * @run main/othervm -Xmx128m -Xbatch -Xcomp -XX:TieredStopAtLevel=1 -XX:-UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestObjects - * @run main/othervm -Xmx128m -Xbatch -Xcomp -XX:-TieredCompilation -XX:-UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestObjects + * @run main/othervm -XX:+UseTLAB -Xmx256m + * -Xint + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestObjects + * + * @run main/othervm -XX:+UseTLAB -Xmx256m + * -Xbatch -Xcomp -XX:TieredStopAtLevel=1 + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestObjects + * + * @run main/othervm -XX:+UseTLAB -Xmx256m + * -Xbatch -Xcomp -XX:-TieredCompilation + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestObjects + * + * @run main/othervm -XX:-UseTLAB -Xmx256m + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestObjects + * + * @run main/othervm -XX:-UseTLAB -Xmx256m + * -Xint + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestObjects + * + * @run main/othervm -XX:-UseTLAB -Xmx256m + * -Xbatch -Xcomp -XX:TieredStopAtLevel=1 + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestObjects + * + * @run main/othervm -XX:-UseTLAB -Xmx256m + * -Xbatch -Xcomp -XX:-TieredCompilation + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestObjects */ import java.util.Random; diff --git a/test/hotspot/jtreg/gc/epsilon/TestPrintHeapSteps.java b/test/hotspot/jtreg/gc/epsilon/TestPrintHeapSteps.java index 5feef31b38106..fb131b86eaa3b 100644 --- a/test/hotspot/jtreg/gc/epsilon/TestPrintHeapSteps.java +++ b/test/hotspot/jtreg/gc/epsilon/TestPrintHeapSteps.java @@ -27,9 +27,21 @@ * @test TestPrintSteps * @requires vm.gc.Epsilon * @summary Tests -XX:EpsilonPrintHeapSteps works - * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -Xlog:gc -XX:EpsilonPrintHeapSteps=0 gc.epsilon.TestPrintHeapSteps - * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -Xlog:gc -XX:EpsilonPrintHeapSteps=1 gc.epsilon.TestPrintHeapSteps - * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -Xlog:gc -XX:EpsilonPrintHeapSteps=1000 gc.epsilon.TestPrintHeapSteps + * + * @run main/othervm -Xmx64m -Xlog:gc + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * -XX:EpsilonPrintHeapSteps=0 + * gc.epsilon.TestPrintHeapSteps + * + * @run main/othervm -Xmx64m -Xlog:gc + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * -XX:EpsilonPrintHeapSteps=1 + * gc.epsilon.TestPrintHeapSteps + * + * @run main/othervm -Xmx64m -Xlog:gc + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * -XX:EpsilonPrintHeapSteps=1000 + * gc.epsilon.TestPrintHeapSteps */ public class TestPrintHeapSteps { diff --git a/test/hotspot/jtreg/gc/epsilon/TestRefArrays.java b/test/hotspot/jtreg/gc/epsilon/TestRefArrays.java index 0dac53e4832e1..2be731eba6278 100644 --- a/test/hotspot/jtreg/gc/epsilon/TestRefArrays.java +++ b/test/hotspot/jtreg/gc/epsilon/TestRefArrays.java @@ -30,24 +30,50 @@ * @summary Epsilon is able to allocate arrays, and does not corrupt their state * @library /test/lib * - * @run main/othervm -Xmx1g -XX:+UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestRefArrays - * @run main/othervm -Xmx1g -Xint -XX:+UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestRefArrays - * @run main/othervm -Xmx1g -Xbatch -Xcomp -XX:+UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestRefArrays - * @run main/othervm -Xmx1g -Xbatch -Xcomp -XX:TieredStopAtLevel=1 -XX:+UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestRefArrays - * @run main/othervm -Xmx1g -Xbatch -Xcomp -XX:-TieredCompilation -XX:+UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestRefArrays + * @run main/othervm -XX:+UseTLAB -Xmx256m + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestRefArrays * - * @run main/othervm -Xmx1g -XX:-UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestRefArrays - * @run main/othervm -Xmx1g -Xint -XX:-UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestRefArrays - * @run main/othervm -Xmx1g -Xbatch -Xcomp -XX:-UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestRefArrays - * @run main/othervm -Xmx1g -Xbatch -Xcomp -XX:TieredStopAtLevel=1 -XX:-UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestRefArrays - * @run main/othervm -Xmx1g -Xbatch -Xcomp -XX:-TieredCompilation -XX:-UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestRefArrays + * @run main/othervm -XX:+UseTLAB -Xmx256m + * -Xint + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestRefArrays + * + * @run main/othervm -XX:+UseTLAB -Xmx256m + * -Xbatch -Xcomp -XX:TieredStopAtLevel=1 + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestRefArrays + * + * @run main/othervm -XX:+UseTLAB -Xmx256m + * -Xbatch -Xcomp -XX:-TieredCompilation + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestRefArrays + * + * @run main/othervm -XX:-UseTLAB -Xmx256m + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestRefArrays + * + * @run main/othervm -XX:-UseTLAB -Xmx256m + * -Xint + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestRefArrays + * + * @run main/othervm -XX:-UseTLAB -Xmx256m + * -Xbatch -Xcomp -XX:TieredStopAtLevel=1 + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestRefArrays + * + * @run main/othervm -XX:-UseTLAB -Xmx256m + * -Xbatch -Xcomp -XX:-TieredCompilation + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * gc.epsilon.TestRefArrays */ import java.util.Random; import jdk.test.lib.Utils; public class TestRefArrays { - static int COUNT = Integer.getInteger("count", 1000); // ~500 MB allocation + static int COUNT = Integer.getInteger("count", 200); // ~100 MB allocation static MyObject[][] arr; diff --git a/test/hotspot/jtreg/gc/epsilon/TestUpdateCountersSteps.java b/test/hotspot/jtreg/gc/epsilon/TestUpdateCountersSteps.java index 94e743f65c6db..6bf15805313cc 100644 --- a/test/hotspot/jtreg/gc/epsilon/TestUpdateCountersSteps.java +++ b/test/hotspot/jtreg/gc/epsilon/TestUpdateCountersSteps.java @@ -27,10 +27,26 @@ * @test TestUpdateCountersSteps * @requires vm.gc.Epsilon * @summary Test EpsilonUpdateCountersStep works - * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -Xlog:gc -XX:EpsilonUpdateCountersStep=1 gc.epsilon.TestUpdateCountersSteps - * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -Xlog:gc -XX:EpsilonUpdateCountersStep=10 gc.epsilon.TestUpdateCountersSteps - * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -Xlog:gc -XX:EpsilonUpdateCountersStep=100 gc.epsilon.TestUpdateCountersSteps - * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -Xlog:gc -XX:EpsilonUpdateCountersStep=1000 gc.epsilon.TestUpdateCountersSteps + * + * @run main/othervm -Xmx64m -Xlog:gc + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * -XX:EpsilonUpdateCountersStep=1 + * gc.epsilon.TestUpdateCountersSteps + * + * @run main/othervm -Xmx64m -Xlog:gc + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * -XX:EpsilonUpdateCountersStep=10 + * gc.epsilon.TestUpdateCountersSteps + * + * @run main/othervm -Xmx64m -Xlog:gc + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * -XX:EpsilonUpdateCountersStep=100 + * gc.epsilon.TestUpdateCountersSteps + * + * @run main/othervm -Xmx64m -Xlog:gc + * -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC + * -XX:EpsilonUpdateCountersStep=1000 + * gc.epsilon.TestUpdateCountersSteps */ public class TestUpdateCountersSteps {