8290023: Remove use of IgnoreUnrecognizedVMOptions in gc tests
Reviewed-by: ayang, lkorinth, kbarrett
This commit is contained in:
parent
44fb92e2aa
commit
2583feb21b
@ -26,36 +26,29 @@ package gc;
|
|||||||
/**
|
/**
|
||||||
* @test TestObjectAlignment
|
* @test TestObjectAlignment
|
||||||
* @bug 8021823
|
* @bug 8021823
|
||||||
|
* @requires vm.bits == "64"
|
||||||
* @summary G1: Concurrent marking crashes with -XX:ObjectAlignmentInBytes>=32 in 64bit VMs
|
* @summary G1: Concurrent marking crashes with -XX:ObjectAlignmentInBytes>=32 in 64bit VMs
|
||||||
* @library /test/lib
|
* @library /test/lib
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
* @run main/othervm gc.TestObjectAlignment -Xmx20M -XX:+ExplicitGCInvokesConcurrent -XX:+IgnoreUnrecognizedVMOptions -XX:ObjectAlignmentInBytes=8
|
* @run main/othervm gc.TestObjectAlignment -Xmx20M -XX:+ExplicitGCInvokesConcurrent -XX:ObjectAlignmentInBytes=8
|
||||||
* @run main/othervm gc.TestObjectAlignment -Xmx20M -XX:+ExplicitGCInvokesConcurrent -XX:+IgnoreUnrecognizedVMOptions -XX:ObjectAlignmentInBytes=16
|
* @run main/othervm gc.TestObjectAlignment -Xmx20M -XX:+ExplicitGCInvokesConcurrent -XX:ObjectAlignmentInBytes=16
|
||||||
* @run main/othervm gc.TestObjectAlignment -Xmx20M -XX:+ExplicitGCInvokesConcurrent -XX:+IgnoreUnrecognizedVMOptions -XX:ObjectAlignmentInBytes=32
|
* @run main/othervm gc.TestObjectAlignment -Xmx20M -XX:+ExplicitGCInvokesConcurrent -XX:ObjectAlignmentInBytes=32
|
||||||
* @run main/othervm gc.TestObjectAlignment -Xmx20M -XX:+ExplicitGCInvokesConcurrent -XX:+IgnoreUnrecognizedVMOptions -XX:ObjectAlignmentInBytes=64
|
* @run main/othervm gc.TestObjectAlignment -Xmx20M -XX:+ExplicitGCInvokesConcurrent -XX:ObjectAlignmentInBytes=64
|
||||||
* @run main/othervm gc.TestObjectAlignment -Xmx20M -XX:+ExplicitGCInvokesConcurrent -XX:+IgnoreUnrecognizedVMOptions -XX:ObjectAlignmentInBytes=128
|
* @run main/othervm gc.TestObjectAlignment -Xmx20M -XX:+ExplicitGCInvokesConcurrent -XX:ObjectAlignmentInBytes=128
|
||||||
* @run main/othervm gc.TestObjectAlignment -Xmx20M -XX:+ExplicitGCInvokesConcurrent -XX:+IgnoreUnrecognizedVMOptions -XX:ObjectAlignmentInBytes=256
|
* @run main/othervm gc.TestObjectAlignment -Xmx20M -XX:+ExplicitGCInvokesConcurrent -XX:ObjectAlignmentInBytes=256
|
||||||
* @run main/othervm gc.TestObjectAlignment -Xmx20M -XX:-ExplicitGCInvokesConcurrent -XX:+IgnoreUnrecognizedVMOptions -XX:ObjectAlignmentInBytes=8
|
* @run main/othervm gc.TestObjectAlignment -Xmx20M -XX:-ExplicitGCInvokesConcurrent -XX:ObjectAlignmentInBytes=8
|
||||||
* @run main/othervm gc.TestObjectAlignment -Xmx20M -XX:-ExplicitGCInvokesConcurrent -XX:+IgnoreUnrecognizedVMOptions -XX:ObjectAlignmentInBytes=16
|
* @run main/othervm gc.TestObjectAlignment -Xmx20M -XX:-ExplicitGCInvokesConcurrent -XX:ObjectAlignmentInBytes=16
|
||||||
* @run main/othervm gc.TestObjectAlignment -Xmx20M -XX:-ExplicitGCInvokesConcurrent -XX:+IgnoreUnrecognizedVMOptions -XX:ObjectAlignmentInBytes=32
|
* @run main/othervm gc.TestObjectAlignment -Xmx20M -XX:-ExplicitGCInvokesConcurrent -XX:ObjectAlignmentInBytes=32
|
||||||
* @run main/othervm gc.TestObjectAlignment -Xmx20M -XX:-ExplicitGCInvokesConcurrent -XX:+IgnoreUnrecognizedVMOptions -XX:ObjectAlignmentInBytes=64
|
* @run main/othervm gc.TestObjectAlignment -Xmx20M -XX:-ExplicitGCInvokesConcurrent -XX:ObjectAlignmentInBytes=64
|
||||||
* @run main/othervm gc.TestObjectAlignment -Xmx20M -XX:-ExplicitGCInvokesConcurrent -XX:+IgnoreUnrecognizedVMOptions -XX:ObjectAlignmentInBytes=128
|
* @run main/othervm gc.TestObjectAlignment -Xmx20M -XX:-ExplicitGCInvokesConcurrent -XX:ObjectAlignmentInBytes=128
|
||||||
* @run main/othervm gc.TestObjectAlignment -Xmx20M -XX:-ExplicitGCInvokesConcurrent -XX:+IgnoreUnrecognizedVMOptions -XX:ObjectAlignmentInBytes=256
|
* @run main/othervm gc.TestObjectAlignment -Xmx20M -XX:-ExplicitGCInvokesConcurrent -XX:ObjectAlignmentInBytes=256
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class TestObjectAlignment {
|
public class TestObjectAlignment {
|
||||||
|
|
||||||
public static byte[] garbage;
|
public static byte[] garbage;
|
||||||
|
|
||||||
private static boolean runsOn32bit() {
|
|
||||||
return System.getProperty("sun.arch.data.model").equals("32");
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
if (runsOn32bit()) {
|
|
||||||
// 32 bit VMs do not allow setting ObjectAlignmentInBytes, so there is nothing to test. We still get called.
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
for (int i = 0; i < 10; i++) {
|
for (int i = 0; i < 10; i++) {
|
||||||
garbage = new byte[1000];
|
garbage = new byte[1000];
|
||||||
System.gc();
|
System.gc();
|
||||||
|
@ -36,15 +36,22 @@ package gc.epsilon;
|
|||||||
* @run main/othervm -Xmx64m -XX:-UseTLAB
|
* @run main/othervm -Xmx64m -XX:-UseTLAB
|
||||||
* -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC
|
* -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC
|
||||||
* gc.epsilon.TestAlignment
|
* gc.epsilon.TestAlignment
|
||||||
*
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @test TestAlignment
|
||||||
|
* @requires vm.gc.Epsilon
|
||||||
|
* @requires vm.bits == "64"
|
||||||
|
* @summary Check Epsilon TLAB options with unusual object alignment
|
||||||
|
* @bug 8212177
|
||||||
* @run main/othervm -Xmx64m -XX:+UseTLAB
|
* @run main/othervm -Xmx64m -XX:+UseTLAB
|
||||||
* -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC
|
* -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC
|
||||||
* -XX:+IgnoreUnrecognizedVMOptions -XX:ObjectAlignmentInBytes=16
|
* -XX:ObjectAlignmentInBytes=16
|
||||||
* gc.epsilon.TestAlignment
|
* gc.epsilon.TestAlignment
|
||||||
*
|
*
|
||||||
* @run main/othervm -Xmx64m -XX:-UseTLAB
|
* @run main/othervm -Xmx64m -XX:-UseTLAB
|
||||||
* -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC
|
* -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC
|
||||||
* -XX:+IgnoreUnrecognizedVMOptions -XX:ObjectAlignmentInBytes=16
|
* -XX:ObjectAlignmentInBytes=16
|
||||||
* gc.epsilon.TestAlignment
|
* gc.epsilon.TestAlignment
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -48,29 +48,36 @@ package gc.epsilon;
|
|||||||
* -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC
|
* -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC
|
||||||
* -XX:EpsilonMaxTLABSize=12345
|
* -XX:EpsilonMaxTLABSize=12345
|
||||||
* gc.epsilon.TestMaxTLAB
|
* gc.epsilon.TestMaxTLAB
|
||||||
*
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @test TestMaxTLAB
|
||||||
|
* @requires vm.gc.Epsilon
|
||||||
|
* @requires vm.bits == "64"
|
||||||
|
* @summary Check EpsilonMaxTLAB options
|
||||||
|
* @bug 8212177
|
||||||
* @run main/othervm -Xmx64m
|
* @run main/othervm -Xmx64m
|
||||||
* -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC
|
* -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC
|
||||||
* -XX:EpsilonMaxTLABSize=1
|
* -XX:EpsilonMaxTLABSize=1
|
||||||
* -XX:+IgnoreUnrecognizedVMOptions -XX:ObjectAlignmentInBytes=16
|
* -XX:ObjectAlignmentInBytes=16
|
||||||
* gc.epsilon.TestMaxTLAB
|
* gc.epsilon.TestMaxTLAB
|
||||||
*
|
*
|
||||||
* @run main/othervm -Xmx64m
|
* @run main/othervm -Xmx64m
|
||||||
* -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC
|
* -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC
|
||||||
* -XX:EpsilonMaxTLABSize=1K
|
* -XX:EpsilonMaxTLABSize=1K
|
||||||
* -XX:+IgnoreUnrecognizedVMOptions -XX:ObjectAlignmentInBytes=16
|
* -XX:ObjectAlignmentInBytes=16
|
||||||
* gc.epsilon.TestMaxTLAB
|
* gc.epsilon.TestMaxTLAB
|
||||||
*
|
*
|
||||||
* @run main/othervm -Xmx64m
|
* @run main/othervm -Xmx64m
|
||||||
* -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC
|
* -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC
|
||||||
* -XX:EpsilonMaxTLABSize=1M
|
* -XX:EpsilonMaxTLABSize=1M
|
||||||
* -XX:+IgnoreUnrecognizedVMOptions -XX:ObjectAlignmentInBytes=16
|
* -XX:ObjectAlignmentInBytes=16
|
||||||
* gc.epsilon.TestMaxTLAB
|
* gc.epsilon.TestMaxTLAB
|
||||||
*
|
*
|
||||||
* @run main/othervm -Xmx64m
|
* @run main/othervm -Xmx64m
|
||||||
* -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC
|
* -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC
|
||||||
* -XX:EpsilonMaxTLABSize=12345
|
* -XX:EpsilonMaxTLABSize=12345
|
||||||
* -XX:+IgnoreUnrecognizedVMOptions -XX:ObjectAlignmentInBytes=16
|
* -XX:ObjectAlignmentInBytes=16
|
||||||
* gc.epsilon.TestMaxTLAB
|
* gc.epsilon.TestMaxTLAB
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -30,6 +30,7 @@ package gc.g1;
|
|||||||
* mark bitmaps at reclaim.
|
* mark bitmaps at reclaim.
|
||||||
* @key randomness
|
* @key randomness
|
||||||
* @requires vm.gc.G1
|
* @requires vm.gc.G1
|
||||||
|
* @requires vm.debug
|
||||||
* @library /test/lib
|
* @library /test/lib
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
* java.management
|
* java.management
|
||||||
@ -129,7 +130,6 @@ public class TestEagerReclaimHumongousRegionsClearMarkBits {
|
|||||||
"-XX:+UnlockDiagnosticVMOptions",
|
"-XX:+UnlockDiagnosticVMOptions",
|
||||||
"-XX:+VerifyAfterGC",
|
"-XX:+VerifyAfterGC",
|
||||||
"-XX:ConcGCThreads=1", // Want to make marking as slow as possible.
|
"-XX:ConcGCThreads=1", // Want to make marking as slow as possible.
|
||||||
"-XX:+IgnoreUnrecognizedVMOptions", // G1VerifyBitmaps is develop only.
|
|
||||||
"-XX:+G1VerifyBitmaps",
|
"-XX:+G1VerifyBitmaps",
|
||||||
TestEagerReclaimHumongousRegionsClearMarkBitsReclaimRegionFast.class.getName());
|
TestEagerReclaimHumongousRegionsClearMarkBitsReclaimRegionFast.class.getName());
|
||||||
OutputAnalyzer output = new OutputAnalyzer(pb.start());
|
OutputAnalyzer output = new OutputAnalyzer(pb.start());
|
||||||
|
@ -33,17 +33,21 @@ package gc.g1;
|
|||||||
* @requires vm.opt.LargePageSizeInBytes == null
|
* @requires vm.opt.LargePageSizeInBytes == null
|
||||||
* @build jdk.test.whitebox.WhiteBox
|
* @build jdk.test.whitebox.WhiteBox
|
||||||
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
|
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
|
||||||
* @run main/othervm -Xbootclasspath/a:. -XX:+UseG1GC -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:+IgnoreUnrecognizedVMOptions -XX:+UseLargePages gc.g1.TestLargePageUseForAuxMemory
|
* @run main/othervm -Xbootclasspath/a:. -XX:+UseG1GC -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:+UseLargePages gc.g1.TestLargePageUseForAuxMemory
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
import java.lang.Math;
|
import java.lang.Math;
|
||||||
|
import java.util.Collections;
|
||||||
import jdk.test.lib.process.OutputAnalyzer;
|
import jdk.test.lib.process.OutputAnalyzer;
|
||||||
import jdk.test.lib.process.ProcessTools;
|
import jdk.test.lib.process.ProcessTools;
|
||||||
import jdk.test.lib.Asserts;
|
import jdk.test.lib.Asserts;
|
||||||
import jdk.test.lib.Platform;
|
import jdk.test.lib.Platform;
|
||||||
import jtreg.SkippedException;
|
|
||||||
import jdk.test.whitebox.WhiteBox;
|
import jdk.test.whitebox.WhiteBox;
|
||||||
|
|
||||||
|
import jtreg.SkippedException;
|
||||||
|
|
||||||
public class TestLargePageUseForAuxMemory {
|
public class TestLargePageUseForAuxMemory {
|
||||||
static final long HEAP_REGION_SIZE = 1 * 1024 * 1024;
|
static final long HEAP_REGION_SIZE = 1 * 1024 * 1024;
|
||||||
static long largePageSize;
|
static long largePageSize;
|
||||||
@ -105,19 +109,22 @@ public class TestLargePageUseForAuxMemory {
|
|||||||
checkSize(output, expectedPageSize, "Mark Bitmap: .*page_size=([^ ]+)");
|
checkSize(output, expectedPageSize, "Mark Bitmap: .*page_size=([^ ]+)");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static List<String> getOpts(long heapsize, boolean largePageEnabled) {
|
||||||
|
return List.of("-XX:+UseG1GC",
|
||||||
|
"-XX:G1HeapRegionSize=" + HEAP_REGION_SIZE,
|
||||||
|
"-Xmx" + heapsize,
|
||||||
|
"-Xlog:pagesize,gc+init,gc+heap+coops=debug",
|
||||||
|
"-XX:" + (largePageEnabled ? "+" : "-") + "UseLargePages",
|
||||||
|
"-version");
|
||||||
|
}
|
||||||
|
|
||||||
static void testVM(String what, long heapsize, boolean cardsShouldUseLargePages, boolean bitmapShouldUseLargePages) throws Exception {
|
static void testVM(String what, long heapsize, boolean cardsShouldUseLargePages, boolean bitmapShouldUseLargePages) throws Exception {
|
||||||
System.out.println(what + " heapsize " + heapsize + " card table should use large pages " + cardsShouldUseLargePages + " " +
|
System.out.println(what + " heapsize " + heapsize + " card table should use large pages " + cardsShouldUseLargePages + " " +
|
||||||
"bitmaps should use large pages " + bitmapShouldUseLargePages);
|
"bitmaps should use large pages " + bitmapShouldUseLargePages);
|
||||||
ProcessBuilder pb;
|
ProcessBuilder pb;
|
||||||
|
|
||||||
// Test with large page enabled.
|
// Test with large page enabled.
|
||||||
pb = ProcessTools.createJavaProcessBuilder("-XX:+UseG1GC",
|
pb = ProcessTools.createJavaProcessBuilder(getOpts(heapsize, true));
|
||||||
"-XX:G1HeapRegionSize=" + HEAP_REGION_SIZE,
|
|
||||||
"-Xmx" + heapsize,
|
|
||||||
"-Xlog:pagesize,gc+init,gc+heap+coops=debug",
|
|
||||||
"-XX:+UseLargePages",
|
|
||||||
"-XX:+IgnoreUnrecognizedVMOptions", // there is no ObjectAlignmentInBytes in 32 bit builds
|
|
||||||
"-XX:ObjectAlignmentInBytes=8",
|
|
||||||
"-version");
|
|
||||||
|
|
||||||
OutputAnalyzer output = new OutputAnalyzer(pb.start());
|
OutputAnalyzer output = new OutputAnalyzer(pb.start());
|
||||||
// Only expect large page size if large pages are enabled.
|
// Only expect large page size if large pages are enabled.
|
||||||
@ -131,14 +138,7 @@ public class TestLargePageUseForAuxMemory {
|
|||||||
output.shouldHaveExitValue(0);
|
output.shouldHaveExitValue(0);
|
||||||
|
|
||||||
// Test with large page disabled.
|
// Test with large page disabled.
|
||||||
pb = ProcessTools.createJavaProcessBuilder("-XX:+UseG1GC",
|
pb = ProcessTools.createJavaProcessBuilder(getOpts(heapsize, false));
|
||||||
"-XX:G1HeapRegionSize=" + HEAP_REGION_SIZE,
|
|
||||||
"-Xmx" + heapsize,
|
|
||||||
"-Xlog:pagesize",
|
|
||||||
"-XX:-UseLargePages",
|
|
||||||
"-XX:+IgnoreUnrecognizedVMOptions", // there is no ObjectAlignmentInBytes in 32 bit builds
|
|
||||||
"-XX:ObjectAlignmentInBytes=8",
|
|
||||||
"-version");
|
|
||||||
|
|
||||||
output = new OutputAnalyzer(pb.start());
|
output = new OutputAnalyzer(pb.start());
|
||||||
checkSmallTables(output, smallPageSize);
|
checkSmallTables(output, smallPageSize);
|
||||||
|
@ -34,7 +34,7 @@ package gc.g1;
|
|||||||
* @build jdk.test.whitebox.WhiteBox
|
* @build jdk.test.whitebox.WhiteBox
|
||||||
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
|
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
|
||||||
* @run main/othervm -Xbootclasspath/a:. -XX:+UseG1GC -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
|
* @run main/othervm -Xbootclasspath/a:. -XX:+UseG1GC -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
|
||||||
-XX:+IgnoreUnrecognizedVMOptions -XX:+UseLargePages gc.g1.TestLargePageUseForHeap
|
-XX:+UseLargePages gc.g1.TestLargePageUseForHeap
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import jdk.test.lib.process.OutputAnalyzer;
|
import jdk.test.lib.process.OutputAnalyzer;
|
||||||
|
@ -26,6 +26,7 @@ package gc.g1;
|
|||||||
/*
|
/*
|
||||||
* @test TestVerificationInConcurrentCycle
|
* @test TestVerificationInConcurrentCycle
|
||||||
* @requires vm.gc.G1
|
* @requires vm.gc.G1
|
||||||
|
* @requires vm.debug
|
||||||
* @summary Basic testing of various GC pause verification during the G1 concurrent cycle.
|
* @summary Basic testing of various GC pause verification during the G1 concurrent cycle.
|
||||||
* @library /test/lib
|
* @library /test/lib
|
||||||
* @build jdk.test.whitebox.WhiteBox
|
* @build jdk.test.whitebox.WhiteBox
|
||||||
@ -36,7 +37,25 @@ package gc.g1;
|
|||||||
* -XX:+VerifyBeforeGC -XX:+VerifyDuringGC -XX:+VerifyAfterGC
|
* -XX:+VerifyBeforeGC -XX:+VerifyDuringGC -XX:+VerifyAfterGC
|
||||||
* -XX:+G1VerifyRSetsDuringFullGC -XX:+G1VerifyHeapRegionCodeRoots
|
* -XX:+G1VerifyRSetsDuringFullGC -XX:+G1VerifyHeapRegionCodeRoots
|
||||||
* -XX:+VerifyRememberedSets -XX:+VerifyObjectStartArray
|
* -XX:+VerifyRememberedSets -XX:+VerifyObjectStartArray
|
||||||
* -XX:+IgnoreUnrecognizedVMOptions -XX:+G1VerifyBitmaps
|
* -XX:+G1VerifyBitmaps
|
||||||
|
* gc.g1.TestVerificationInConcurrentCycle
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @test TestVerificationInConcurrentCycle
|
||||||
|
* @requires vm.gc.G1
|
||||||
|
* @requires !vm.debug
|
||||||
|
* @summary Basic testing of various GC pause verification during the G1 concurrent cycle. It leaves
|
||||||
|
* out G1VerifyBitmaps as this is a debug-only option.
|
||||||
|
* @library /test/lib
|
||||||
|
* @build sun.hotspot.WhiteBox
|
||||||
|
* @run driver jdk.test.lib.helpers.ClassFileInstaller sun.hotspot.WhiteBox
|
||||||
|
* @run main/othervm
|
||||||
|
* -Xbootclasspath/a:.
|
||||||
|
* -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
|
||||||
|
* -XX:+VerifyBeforeGC -XX:+VerifyDuringGC -XX:+VerifyAfterGC
|
||||||
|
* -XX:+G1VerifyRSetsDuringFullGC -XX:+G1VerifyHeapRegionCodeRoots
|
||||||
|
* -XX:+VerifyRememberedSets -XX:+VerifyObjectStartArray
|
||||||
* gc.g1.TestVerificationInConcurrentCycle
|
* gc.g1.TestVerificationInConcurrentCycle
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ package gc.metaspace;
|
|||||||
* @library /test/lib
|
* @library /test/lib
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
* java.management
|
* java.management
|
||||||
* @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:CompressedClassSpaceSize=48m gc.metaspace.CompressedClassSpaceSizeInJmapHeap
|
* @run main/othervm -XX:CompressedClassSpaceSize=48m gc.metaspace.CompressedClassSpaceSizeInJmapHeap
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import jdk.test.lib.JDKToolLauncher;
|
import jdk.test.lib.JDKToolLauncher;
|
||||||
|
@ -37,11 +37,12 @@ import static jdk.test.lib.Asserts.*;
|
|||||||
* @library /
|
* @library /
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
* java.management
|
* java.management
|
||||||
* @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:-UseCompressedOops gc.metaspace.TestMetaspaceMemoryPool
|
* @run main/othervm -XX:-UseCompressedOops gc.metaspace.TestMetaspaceMemoryPool
|
||||||
* @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:-UseCompressedOops -XX:MaxMetaspaceSize=60m gc.metaspace.TestMetaspaceMemoryPool
|
* @run main/othervm -XX:-UseCompressedOops -XX:MaxMetaspaceSize=60m gc.metaspace.TestMetaspaceMemoryPool
|
||||||
* @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+UseCompressedOops -XX:+UseCompressedClassPointers gc.metaspace.TestMetaspaceMemoryPool
|
* @run main/othervm -XX:+UseCompressedOops -XX:+UseCompressedClassPointers gc.metaspace.TestMetaspaceMemoryPool
|
||||||
* @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+UseCompressedOops -XX:+UseCompressedClassPointers -XX:CompressedClassSpaceSize=60m gc.metaspace.TestMetaspaceMemoryPool
|
* @run main/othervm -XX:+UseCompressedOops -XX:+UseCompressedClassPointers -XX:CompressedClassSpaceSize=60m gc.metaspace.TestMetaspaceMemoryPool
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class TestMetaspaceMemoryPool {
|
public class TestMetaspaceMemoryPool {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
verifyThatMetaspaceMemoryManagerExists();
|
verifyThatMetaspaceMemoryManagerExists();
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2013, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -37,9 +37,10 @@ import static jdk.test.lib.Asserts.*;
|
|||||||
import gc.testlibrary.PerfCounter;
|
import gc.testlibrary.PerfCounter;
|
||||||
import gc.testlibrary.PerfCounters;
|
import gc.testlibrary.PerfCounters;
|
||||||
|
|
||||||
/* @test TestMetaspacePerfCountersSerial
|
/* @test id=Serial-64
|
||||||
* @bug 8014659
|
* @bug 8014659
|
||||||
* @requires vm.gc.Serial
|
* @requires vm.gc.Serial
|
||||||
|
* @requires vm.bits == "64"
|
||||||
* @library /test/lib /
|
* @library /test/lib /
|
||||||
* @summary Tests that performance counters for metaspace and compressed class
|
* @summary Tests that performance counters for metaspace and compressed class
|
||||||
* space exists and works.
|
* space exists and works.
|
||||||
@ -47,13 +48,14 @@ import gc.testlibrary.PerfCounters;
|
|||||||
* java.compiler
|
* java.compiler
|
||||||
* java.management/sun.management
|
* java.management/sun.management
|
||||||
* jdk.internal.jvmstat/sun.jvmstat.monitor
|
* jdk.internal.jvmstat/sun.jvmstat.monitor
|
||||||
* @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:-UseCompressedOops -XX:-UseCompressedClassPointers -XX:+UsePerfData -XX:+UseSerialGC gc.metaspace.TestMetaspacePerfCounters
|
* @run main/othervm -XX:-UseCompressedOops -XX:-UseCompressedClassPointers -XX:+UsePerfData -XX:+UseSerialGC gc.metaspace.TestMetaspacePerfCounters
|
||||||
* @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+UseCompressedOops -XX:+UseCompressedClassPointers -XX:+UsePerfData -XX:+UseSerialGC gc.metaspace.TestMetaspacePerfCounters
|
* @run main/othervm -XX:+UseCompressedOops -XX:+UseCompressedClassPointers -XX:+UsePerfData -XX:+UseSerialGC gc.metaspace.TestMetaspacePerfCounters
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* @test TestMetaspacePerfCountersParallel
|
/* @test id=Parallel-64
|
||||||
* @bug 8014659
|
* @bug 8014659
|
||||||
* @requires vm.gc.Parallel
|
* @requires vm.gc.Parallel
|
||||||
|
* @requires vm.bits == "64"
|
||||||
* @library /test/lib /
|
* @library /test/lib /
|
||||||
* @summary Tests that performance counters for metaspace and compressed class
|
* @summary Tests that performance counters for metaspace and compressed class
|
||||||
* space exists and works.
|
* space exists and works.
|
||||||
@ -61,13 +63,14 @@ import gc.testlibrary.PerfCounters;
|
|||||||
* java.compiler
|
* java.compiler
|
||||||
* java.management/sun.management
|
* java.management/sun.management
|
||||||
* jdk.internal.jvmstat/sun.jvmstat.monitor
|
* jdk.internal.jvmstat/sun.jvmstat.monitor
|
||||||
* @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:-UseCompressedOops -XX:-UseCompressedClassPointers -XX:+UsePerfData -XX:+UseParallelGC gc.metaspace.TestMetaspacePerfCounters
|
* @run main/othervm -XX:-UseCompressedOops -XX:-UseCompressedClassPointers -XX:+UsePerfData -XX:+UseParallelGC gc.metaspace.TestMetaspacePerfCounters
|
||||||
* @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+UseCompressedOops -XX:+UseCompressedClassPointers -XX:+UsePerfData -XX:+UseParallelGC gc.metaspace.TestMetaspacePerfCounters
|
* @run main/othervm -XX:+UseCompressedOops -XX:+UseCompressedClassPointers -XX:+UsePerfData -XX:+UseParallelGC gc.metaspace.TestMetaspacePerfCounters
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* @test TestMetaspacePerfCountersG1
|
/* @test id=G1-64
|
||||||
* @bug 8014659
|
* @bug 8014659
|
||||||
* @requires vm.gc.G1
|
* @requires vm.gc.G1
|
||||||
|
* @requires vm.bits == "64"
|
||||||
* @library /test/lib /
|
* @library /test/lib /
|
||||||
* @summary Tests that performance counters for metaspace and compressed class
|
* @summary Tests that performance counters for metaspace and compressed class
|
||||||
* space exists and works.
|
* space exists and works.
|
||||||
@ -75,13 +78,14 @@ import gc.testlibrary.PerfCounters;
|
|||||||
* java.compiler
|
* java.compiler
|
||||||
* java.management/sun.management
|
* java.management/sun.management
|
||||||
* jdk.internal.jvmstat/sun.jvmstat.monitor
|
* jdk.internal.jvmstat/sun.jvmstat.monitor
|
||||||
* @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:-UseCompressedOops -XX:-UseCompressedClassPointers -XX:+UsePerfData -XX:+UseG1GC gc.metaspace.TestMetaspacePerfCounters
|
* @run main/othervm -XX:-UseCompressedOops -XX:-UseCompressedClassPointers -XX:+UsePerfData -XX:+UseG1GC gc.metaspace.TestMetaspacePerfCounters
|
||||||
* @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+UseCompressedOops -XX:+UseCompressedClassPointers -XX:+UsePerfData -XX:+UseG1GC gc.metaspace.TestMetaspacePerfCounters
|
* @run main/othervm -XX:+UseCompressedOops -XX:+UseCompressedClassPointers -XX:+UsePerfData -XX:+UseG1GC gc.metaspace.TestMetaspacePerfCounters
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* @test TestMetaspacePerfCountersShenandoah
|
/* @test id=Shenandoah-64
|
||||||
* @bug 8014659
|
* @bug 8014659
|
||||||
* @requires vm.gc.Shenandoah
|
* @requires vm.gc.Shenandoah
|
||||||
|
* @requires vm.bits == "64"
|
||||||
* @library /test/lib /
|
* @library /test/lib /
|
||||||
* @summary Tests that performance counters for metaspace and compressed class
|
* @summary Tests that performance counters for metaspace and compressed class
|
||||||
* space exists and works.
|
* space exists and works.
|
||||||
@ -89,9 +93,96 @@ import gc.testlibrary.PerfCounters;
|
|||||||
* java.compiler
|
* java.compiler
|
||||||
* java.management/sun.management
|
* java.management/sun.management
|
||||||
* jdk.internal.jvmstat/sun.jvmstat.monitor
|
* jdk.internal.jvmstat/sun.jvmstat.monitor
|
||||||
* @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:-UseCompressedOops -XX:-UseCompressedClassPointers -XX:+UsePerfData -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC gc.metaspace.TestMetaspacePerfCounters
|
* @run main/othervm -XX:-UseCompressedOops -XX:-UseCompressedClassPointers -XX:+UsePerfData -XX:+UseShenandoahGC gc.metaspace.TestMetaspacePerfCounters
|
||||||
* @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+UseCompressedOops -XX:+UseCompressedClassPointers -XX:+UsePerfData -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC gc.metaspace.TestMetaspacePerfCounters
|
* @run main/othervm -XX:+UseCompressedOops -XX:+UseCompressedClassPointers -XX:+UsePerfData -XX:+UseShenandoahGC gc.metaspace.TestMetaspacePerfCounters
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* @test id=Epsilon-64
|
||||||
|
* @bug 8014659
|
||||||
|
* @requires vm.gc.Epsilon
|
||||||
|
* @requires vm.bits == "64"
|
||||||
|
* @library /test/lib /
|
||||||
|
* @summary Tests that performance counters for metaspace and compressed class
|
||||||
|
* space exists and works.
|
||||||
|
* @modules java.base/jdk.internal.misc
|
||||||
|
* java.compiler
|
||||||
|
* java.management/sun.management
|
||||||
|
* jdk.internal.jvmstat/sun.jvmstat.monitor
|
||||||
|
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:-UseCompressedOops -XX:-UseCompressedClassPointers -XX:+UsePerfData -XX:+UseEpsilonGC gc.metaspace.TestMetaspacePerfCounters
|
||||||
|
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseCompressedOops -XX:+UseCompressedClassPointers -XX:+UsePerfData -XX:+UseEpsilonGC gc.metaspace.TestMetaspacePerfCounters
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* @test id=Serial-32
|
||||||
|
* @bug 8014659
|
||||||
|
* @requires vm.gc.Serial
|
||||||
|
* @requires vm.bits == "32"
|
||||||
|
* @library /test/lib /
|
||||||
|
* @summary Tests that performance counters for metaspace and compressed class
|
||||||
|
* space exists and works.
|
||||||
|
* @modules java.base/jdk.internal.misc
|
||||||
|
* java.compiler
|
||||||
|
* java.management/sun.management
|
||||||
|
* jdk.internal.jvmstat/sun.jvmstat.monitor
|
||||||
|
* @run main/othervm -XX:+UsePerfData -XX:+UseSerialGC gc.metaspace.TestMetaspacePerfCounters
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* @test id=Parallel-32
|
||||||
|
* @bug 8014659
|
||||||
|
* @requires vm.gc.Parallel
|
||||||
|
* @requires vm.bits == "32"
|
||||||
|
* @library /test/lib /
|
||||||
|
* @summary Tests that performance counters for metaspace and compressed class
|
||||||
|
* space exists and works.
|
||||||
|
* @modules java.base/jdk.internal.misc
|
||||||
|
* java.compiler
|
||||||
|
* java.management/sun.management
|
||||||
|
* jdk.internal.jvmstat/sun.jvmstat.monitor
|
||||||
|
* @run main/othervm -XX:+UsePerfData -XX:+UseParallelGC gc.metaspace.TestMetaspacePerfCounters
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* @test id=G1-32
|
||||||
|
* @bug 8014659
|
||||||
|
* @requires vm.gc.G1
|
||||||
|
* @requires vm.bits == "32"
|
||||||
|
* @library /test/lib /
|
||||||
|
* @summary Tests that performance counters for metaspace and compressed class
|
||||||
|
* space exists and works.
|
||||||
|
* @modules java.base/jdk.internal.misc
|
||||||
|
* java.compiler
|
||||||
|
* java.management/sun.management
|
||||||
|
* jdk.internal.jvmstat/sun.jvmstat.monitor
|
||||||
|
* @run main/othervm -XX:+UsePerfData -XX:+UseG1GC gc.metaspace.TestMetaspacePerfCounters
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* @test id=Shenandoah-32
|
||||||
|
* @bug 8014659
|
||||||
|
* @requires vm.gc.Shenandoah
|
||||||
|
* @requires vm.bits == "32"
|
||||||
|
* @library /test/lib /
|
||||||
|
* @summary Tests that performance counters for metaspace and compressed class
|
||||||
|
* space exists and works.
|
||||||
|
* @modules java.base/jdk.internal.misc
|
||||||
|
* java.compiler
|
||||||
|
* java.management/sun.management
|
||||||
|
* jdk.internal.jvmstat/sun.jvmstat.monitor
|
||||||
|
* @run main/othervm -XX:+UsePerfData -XX:+UseShenandoahGC gc.metaspace.TestMetaspacePerfCounters
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/* @test id=Epsilon-32
|
||||||
|
* @bug 8014659
|
||||||
|
* @requires vm.gc.Epsilon
|
||||||
|
* @requires vm.bits == "32"
|
||||||
|
* @library /test/lib /
|
||||||
|
* @summary Tests that performance counters for metaspace and compressed class
|
||||||
|
* space exists and works.
|
||||||
|
* @modules java.base/jdk.internal.misc
|
||||||
|
* java.compiler
|
||||||
|
* java.management/sun.management
|
||||||
|
* jdk.internal.jvmstat/sun.jvmstat.monitor
|
||||||
|
* @run main/othervm -XX:+UsePerfData -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.metaspace.TestMetaspacePerfCounters
|
||||||
|
*/
|
||||||
|
|
||||||
public class TestMetaspacePerfCounters {
|
public class TestMetaspacePerfCounters {
|
||||||
public static Class<?> fooClass = null;
|
public static Class<?> fooClass = null;
|
||||||
private static final String[] counterNames = {"minCapacity", "maxCapacity", "capacity", "used"};
|
private static final String[] counterNames = {"minCapacity", "maxCapacity", "capacity", "used"};
|
||||||
|
@ -34,13 +34,27 @@ import gc.testlibrary.PerfCounters;
|
|||||||
* @bug 8023476
|
* @bug 8023476
|
||||||
* @library /test/lib /
|
* @library /test/lib /
|
||||||
* @requires vm.gc.Serial
|
* @requires vm.gc.Serial
|
||||||
|
* @requires vm.bits == "64"
|
||||||
* @summary Tests that a MemoryPoolMXBeans and PerfCounters for metaspace
|
* @summary Tests that a MemoryPoolMXBeans and PerfCounters for metaspace
|
||||||
* report the same data.
|
* report the same data.
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
* java.management
|
* java.management
|
||||||
* jdk.internal.jvmstat/sun.jvmstat.monitor
|
* jdk.internal.jvmstat/sun.jvmstat.monitor
|
||||||
* @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -Xlog:class+load,class+unload=trace -XX:-UseCompressedOops -XX:-UseCompressedClassPointers -XX:+UseSerialGC -XX:+UsePerfData -Xint gc.metaspace.TestPerfCountersAndMemoryPools
|
* @run main/othervm -Xlog:class+load,class+unload=trace -XX:-UseCompressedOops -XX:-UseCompressedClassPointers -XX:+UseSerialGC -XX:+UsePerfData -Xint gc.metaspace.TestPerfCountersAndMemoryPools
|
||||||
* @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -Xlog:class+load,class+unload=trace -XX:+UseCompressedOops -XX:+UseCompressedClassPointers -XX:+UseSerialGC -XX:+UsePerfData -Xint gc.metaspace.TestPerfCountersAndMemoryPools
|
* @run main/othervm -Xlog:class+load,class+unload=trace -XX:+UseCompressedOops -XX:+UseCompressedClassPointers -XX:+UseSerialGC -XX:+UsePerfData -Xint gc.metaspace.TestPerfCountersAndMemoryPools
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* @test TestPerfCountersAndMemoryPools
|
||||||
|
* @bug 8023476
|
||||||
|
* @library /test/lib /
|
||||||
|
* @requires vm.gc.Serial
|
||||||
|
* @requires vm.bits == "32"
|
||||||
|
* @summary Tests that a MemoryPoolMXBeans and PerfCounters for metaspace
|
||||||
|
* report the same data.
|
||||||
|
* @modules java.base/jdk.internal.misc
|
||||||
|
* java.management
|
||||||
|
* jdk.internal.jvmstat/sun.jvmstat.monitor
|
||||||
|
* @run main/othervm -Xlog:class+load,class+unload=trace -XX:+UseSerialGC -XX:+UsePerfData -Xint gc.metaspace.TestPerfCountersAndMemoryPools
|
||||||
*/
|
*/
|
||||||
public class TestPerfCountersAndMemoryPools {
|
public class TestPerfCountersAndMemoryPools {
|
||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
|
@ -41,20 +41,54 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @test id=default
|
* @test id=default-debug
|
||||||
* @summary Tests that we pass at least one jcstress-like test with all verification turned on
|
* @summary Tests that we pass at least one jcstress-like test with all verification turned on
|
||||||
* @requires vm.gc.Shenandoah
|
* @requires vm.gc.Shenandoah
|
||||||
|
* @requires vm.debug
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
* java.management
|
* java.management
|
||||||
*
|
*
|
||||||
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions
|
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions
|
||||||
* -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive
|
* -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive
|
||||||
* -XX:+ShenandoahVerify -XX:+IgnoreUnrecognizedVMOptions -XX:+ShenandoahVerifyOptoBarriers
|
* -XX:+ShenandoahVerify -XX:+ShenandoahVerifyOptoBarriers
|
||||||
* TestVerifyJCStress
|
* TestVerifyJCStress
|
||||||
*
|
*
|
||||||
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions
|
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions
|
||||||
* -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=compact
|
* -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=compact
|
||||||
* -XX:+ShenandoahVerify -XX:+IgnoreUnrecognizedVMOptions -XX:+ShenandoahVerifyOptoBarriers
|
* -XX:+ShenandoahVerify -XX:+ShenandoahVerifyOptoBarriers
|
||||||
|
* TestVerifyJCStress
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @test id=default
|
||||||
|
* @summary Tests that we pass at least one jcstress-like test with all verification turned on
|
||||||
|
* @requires vm.gc.Shenandoah
|
||||||
|
* @requires !vm.debug
|
||||||
|
* @modules java.base/jdk.internal.misc
|
||||||
|
* java.management
|
||||||
|
*
|
||||||
|
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions
|
||||||
|
* -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive
|
||||||
|
* -XX:+ShenandoahVerify
|
||||||
|
* TestVerifyJCStress
|
||||||
|
*
|
||||||
|
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions
|
||||||
|
* -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=compact
|
||||||
|
* -XX:+ShenandoahVerify
|
||||||
|
* TestVerifyJCStress
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @test id=iu-debug
|
||||||
|
* @summary Tests that we pass at least one jcstress-like test with all verification turned on
|
||||||
|
* @requires vm.gc.Shenandoah
|
||||||
|
* @requires vm.debug
|
||||||
|
* @modules java.base/jdk.internal.misc
|
||||||
|
* java.management
|
||||||
|
*
|
||||||
|
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions
|
||||||
|
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu
|
||||||
|
* -XX:+ShenandoahVerify -XX:+ShenandoahVerifyOptoBarriers
|
||||||
* TestVerifyJCStress
|
* TestVerifyJCStress
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -62,20 +96,30 @@
|
|||||||
* @test id=iu
|
* @test id=iu
|
||||||
* @summary Tests that we pass at least one jcstress-like test with all verification turned on
|
* @summary Tests that we pass at least one jcstress-like test with all verification turned on
|
||||||
* @requires vm.gc.Shenandoah
|
* @requires vm.gc.Shenandoah
|
||||||
|
* @required !vm.debug
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
* java.management
|
* java.management
|
||||||
*
|
*
|
||||||
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions
|
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions
|
||||||
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu
|
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu
|
||||||
* -XX:+ShenandoahVerify -XX:+IgnoreUnrecognizedVMOptions -XX:+ShenandoahVerifyOptoBarriers
|
* -XX:+ShenandoahVerify
|
||||||
* TestVerifyJCStress
|
* TestVerifyJCStress
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @test id=iu-c1
|
||||||
|
* @summary Tests that we pass at least one jcstress-like test with all verification turned on
|
||||||
|
* @requires vm.gc.Shenandoah
|
||||||
|
* @modules java.base/jdk.internal.misc
|
||||||
|
* java.management
|
||||||
*
|
*
|
||||||
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions
|
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions
|
||||||
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu
|
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu
|
||||||
* -XX:+ShenandoahVerify -XX:+IgnoreUnrecognizedVMOptions -XX:TieredStopAtLevel=1
|
* -XX:+ShenandoahVerify -XX:TieredStopAtLevel=1
|
||||||
* TestVerifyJCStress
|
* TestVerifyJCStress
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.concurrent.*;
|
import java.util.concurrent.*;
|
||||||
import java.util.concurrent.locks.*;
|
import java.util.concurrent.locks.*;
|
||||||
|
@ -29,7 +29,15 @@
|
|||||||
* @library /test/lib
|
* @library /test/lib
|
||||||
* @run driver TestSelectiveBarrierFlags -Xint
|
* @run driver TestSelectiveBarrierFlags -Xint
|
||||||
* @run driver TestSelectiveBarrierFlags -Xbatch -XX:CompileThreshold=100 -XX:TieredStopAtLevel=1
|
* @run driver TestSelectiveBarrierFlags -Xbatch -XX:CompileThreshold=100 -XX:TieredStopAtLevel=1
|
||||||
* @run driver TestSelectiveBarrierFlags -Xbatch -XX:CompileThreshold=100 -XX:-TieredCompilation -XX:+IgnoreUnrecognizedVMOptions -XX:+ShenandoahVerifyOptoBarriers
|
*/
|
||||||
|
|
||||||
|
/* @test
|
||||||
|
* @summary Test selective barrier enabling works, by aggressively compiling HelloWorld with combinations
|
||||||
|
* of barrier flags
|
||||||
|
* @requires vm.gc.Shenandoah
|
||||||
|
* @requires vm.debug
|
||||||
|
* @library /test/lib
|
||||||
|
* @run driver TestSelectiveBarrierFlags -Xbatch -XX:CompileThreshold=100 -XX:-TieredCompilation -XX:+ShenandoahVerifyOptoBarriers
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
Loading…
Reference in New Issue
Block a user