mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-14 13:29:40 +01:00
Trim/expand test heap sizes to fit small heaps
This commit is contained in:
@@ -34,8 +34,8 @@ import jdk.internal.vm.annotation.Contended;
|
||||
* @run main/othervm -XX:+EnableContended -XX:-RestrictContended -Xmx128m -XX:+UseG1GC -XX:G1HeapRegionSize=2M -XX:ContendedPaddingWidth=8192 TestHumongousReferenceObject
|
||||
* @run main/othervm -XX:+EnableContended -XX:-RestrictContended -Xmx128m -XX:+UseG1GC -XX:G1HeapRegionSize=4M -XX:ContendedPaddingWidth=8192 TestHumongousReferenceObject
|
||||
* @run main/othervm -XX:+EnableContended -XX:-RestrictContended -Xmx128m -XX:+UseG1GC -XX:G1HeapRegionSize=8M -XX:ContendedPaddingWidth=8192 TestHumongousReferenceObject
|
||||
* @run main/othervm -XX:+EnableContended -XX:-RestrictContended -Xmx128m -XX:+UseShenandoahGC -XX:ShenandoahHeapRegionSize=8M -XX:ContendedPaddingWidth=8192 TestHumongousReferenceObject
|
||||
* @run main/othervm -XX:+EnableContended -XX:-RestrictContended -Xmx128m -XX:+UseShenandoahGC -XX:ShenandoahHeapRegionSize=8M -XX:ContendedPaddingWidth=8192 -XX:+UnlockDiagnosticVMOptions -XX:+ShenandoahVerify TestHumongousReferenceObject
|
||||
* @run main/othervm -XX:+EnableContended -XX:-RestrictContended -Xms128m -Xmx128m -XX:+UseShenandoahGC -XX:ShenandoahHeapRegionSize=8M -XX:ContendedPaddingWidth=8192 TestHumongousReferenceObject
|
||||
* @run main/othervm -XX:+EnableContended -XX:-RestrictContended -Xms128m -Xmx128m -XX:+UseShenandoahGC -XX:ShenandoahHeapRegionSize=8M -XX:ContendedPaddingWidth=8192 -XX:+UnlockDiagnosticVMOptions -XX:+ShenandoahVerify TestHumongousReferenceObject
|
||||
*/
|
||||
public class TestHumongousReferenceObject {
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ public class EvilSyncBug {
|
||||
test();
|
||||
} else {
|
||||
for (int i = 0; i < NUM_RUNS; i++) {
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-Xmx128m",
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-Xms128m",
|
||||
"-Xmx128m",
|
||||
"-XX:+UseShenandoahGC",
|
||||
"-XX:+UnlockDiagnosticVMOptions",
|
||||
|
||||
@@ -24,13 +24,13 @@
|
||||
/*
|
||||
* @test HumongousThreshold
|
||||
*
|
||||
* @run main/othervm -XX:+UseShenandoahGC -Xmx2g -XX:+UnlockDiagnosticVMOptions -XX:+ShenandoahVerify HumongousThreshold
|
||||
* @run main/othervm -XX:+UseShenandoahGC -Xmx2g -XX:+UnlockExperimentalVMOptions -XX:ShenandoahHumongousThreshold=50 -XX:+UnlockDiagnosticVMOptions -XX:+ShenandoahVerify HumongousThreshold
|
||||
* @run main/othervm -XX:+UseShenandoahGC -Xmx2g -XX:+UnlockExperimentalVMOptions -XX:ShenandoahHumongousThreshold=90 -XX:+UnlockDiagnosticVMOptions -XX:+ShenandoahVerify HumongousThreshold
|
||||
* @run main/othervm -XX:+UseShenandoahGC -Xmx2g -XX:+UnlockExperimentalVMOptions -XX:ShenandoahHumongousThreshold=99 -XX:+UnlockDiagnosticVMOptions -XX:+ShenandoahVerify HumongousThreshold
|
||||
* @run main/othervm -XX:+UseShenandoahGC -Xmx2g -XX:+UnlockExperimentalVMOptions -XX:ShenandoahHumongousThreshold=100 -XX:+UnlockDiagnosticVMOptions -XX:+ShenandoahVerify HumongousThreshold
|
||||
* @run main/othervm -XX:+UseShenandoahGC -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+ShenandoahVerify HumongousThreshold
|
||||
* @run main/othervm -XX:+UseShenandoahGC -Xmx1g -XX:+UnlockExperimentalVMOptions -XX:ShenandoahHumongousThreshold=50 -XX:+UnlockDiagnosticVMOptions -XX:+ShenandoahVerify HumongousThreshold
|
||||
* @run main/othervm -XX:+UseShenandoahGC -Xmx1g -XX:+UnlockExperimentalVMOptions -XX:ShenandoahHumongousThreshold=90 -XX:+UnlockDiagnosticVMOptions -XX:+ShenandoahVerify HumongousThreshold
|
||||
* @run main/othervm -XX:+UseShenandoahGC -Xmx1g -XX:+UnlockExperimentalVMOptions -XX:ShenandoahHumongousThreshold=99 -XX:+UnlockDiagnosticVMOptions -XX:+ShenandoahVerify HumongousThreshold
|
||||
* @run main/othervm -XX:+UseShenandoahGC -Xmx1g -XX:+UnlockExperimentalVMOptions -XX:ShenandoahHumongousThreshold=100 -XX:+UnlockDiagnosticVMOptions -XX:+ShenandoahVerify HumongousThreshold
|
||||
*
|
||||
* @run main/othervm -XX:+UseShenandoahGC -Xmx2g -XX:+UnlockExperimentalVMOptions -XX:ShenandoahHumongousThreshold=90
|
||||
* @run main/othervm -XX:+UseShenandoahGC -Xmx1g -XX:+UnlockExperimentalVMOptions -XX:ShenandoahHumongousThreshold=90
|
||||
* -XX:+UnlockDiagnosticVMOptions -XX:ShenandoahGCHeuristics=aggressive HumongousThreshold
|
||||
*/
|
||||
|
||||
|
||||
@@ -30,20 +30,20 @@
|
||||
* @modules java.base/jdk.internal.misc:open
|
||||
* @modules java.base/java.lang:open
|
||||
* java.management
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseStringDeduplication -Xmx2G -Xlog:gc+stats ShenandoahStrDedupStress
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=aggressive -XX:+UseStringDeduplication -Xmx2G -Xlog:gc+stats ShenandoahStrDedupStress
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=aggressive -XX:+UseStringDeduplication -Xmx2G -Xlog:gc+stats -XX:+ShenandoahOOMDuringEvacALot ShenandoahStrDedupStress
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=static -XX:+UseStringDeduplication -Xmx2G -Xlog:gc+stats ShenandoahStrDedupStress
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=continuous -XX:+UseStringDeduplication -Xmx2G -Xlog:gc+stats ShenandoahStrDedupStress
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=passive -XX:+UseStringDeduplication -Xmx2G -Xlog:gc+stats ShenandoahStrDedupStress
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=generational -XX:+UseStringDeduplication -Xmx2G -Xlog:gc+stats ShenandoahStrDedupStress
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=LRU -XX:+UseStringDeduplication -Xmx2G -Xlog:gc+stats ShenandoahStrDedupStress
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=connected -XX:+UseStringDeduplication -Xmx2G -Xlog:gc+stats ShenandoahStrDedupStress
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseStringDeduplication -Xmx2G -Xlog:gc+stats -XX:ShenandoahUpdateRefsEarly=off ShenandoahStrDedupStress
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=continuous -XX:+UseStringDeduplication -Xmx2G -Xlog:gc+stats -XX:ShenandoahUpdateRefsEarly=off ShenandoahStrDedupStress
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=aggressive -XX:+UseStringDeduplication -Xmx2G -Xlog:gc+stats -XX:ShenandoahUpdateRefsEarly=off ShenandoahStrDedupStress
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=static -XX:+UseStringDeduplication -Xmx2G -Xlog:gc+stats -XX:ShenandoahUpdateRefsEarly=off ShenandoahStrDedupStress
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=aggressive -XX:+UseStringDeduplication -Xmx2G -Xlog:gc+stats -XX:ShenandoahUpdateRefsEarly=off -XX:+ShenandoahOOMDuringEvacALot ShenandoahStrDedupStress
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseStringDeduplication -Xmx1g -Xlog:gc+stats ShenandoahStrDedupStress
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=aggressive -XX:+UseStringDeduplication -Xmx1g -Xlog:gc+stats ShenandoahStrDedupStress
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=aggressive -XX:+UseStringDeduplication -Xmx1g -Xlog:gc+stats -XX:+ShenandoahOOMDuringEvacALot ShenandoahStrDedupStress
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=static -XX:+UseStringDeduplication -Xmx1g -Xlog:gc+stats ShenandoahStrDedupStress
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=continuous -XX:+UseStringDeduplication -Xmx1g -Xlog:gc+stats ShenandoahStrDedupStress
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=passive -XX:+UseStringDeduplication -Xmx1g -Xlog:gc+stats ShenandoahStrDedupStress
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=generational -XX:+UseStringDeduplication -Xmx1g -Xlog:gc+stats ShenandoahStrDedupStress
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=LRU -XX:+UseStringDeduplication -Xmx1g -Xlog:gc+stats ShenandoahStrDedupStress
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=connected -XX:+UseStringDeduplication -Xmx1g -Xlog:gc+stats ShenandoahStrDedupStress
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseStringDeduplication -Xmx1g -Xlog:gc+stats -XX:ShenandoahUpdateRefsEarly=off ShenandoahStrDedupStress
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=continuous -XX:+UseStringDeduplication -Xmx1g -Xlog:gc+stats -XX:ShenandoahUpdateRefsEarly=off ShenandoahStrDedupStress
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=aggressive -XX:+UseStringDeduplication -Xmx1g -Xlog:gc+stats -XX:ShenandoahUpdateRefsEarly=off ShenandoahStrDedupStress
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=static -XX:+UseStringDeduplication -Xmx1g -Xlog:gc+stats -XX:ShenandoahUpdateRefsEarly=off ShenandoahStrDedupStress
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=aggressive -XX:+UseStringDeduplication -Xmx1g -Xlog:gc+stats -XX:ShenandoahUpdateRefsEarly=off -XX:+ShenandoahOOMDuringEvacALot ShenandoahStrDedupStress
|
||||
*/
|
||||
|
||||
import java.lang.reflect.*;
|
||||
|
||||
@@ -49,7 +49,7 @@ public class TestHeapAlloc {
|
||||
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
|
||||
true,
|
||||
"-Xmx4G",
|
||||
"-Xmx1G",
|
||||
"-Xms256M",
|
||||
"-XX:+UseShenandoahGC",
|
||||
"-XX:ShenandoahFailHeapExpansionAfter=50",
|
||||
|
||||
@@ -24,11 +24,11 @@
|
||||
/*
|
||||
* @test TestShenandoahWithLogLevel.java
|
||||
* @summary Test Shenandoah with different log levels
|
||||
* @run main/othervm -XX:+UseShenandoahGC -Xms256M -Xmx4G -Xlog:gc*=error TestShenandoahWithLogLevel
|
||||
* @run main/othervm -XX:+UseShenandoahGC -Xms256M -Xmx4G -Xlog:gc*=warning TestShenandoahWithLogLevel
|
||||
* @run main/othervm -XX:+UseShenandoahGC -Xms256M -Xmx4G -Xlog:gc*=info TestShenandoahWithLogLevel
|
||||
* @run main/othervm -XX:+UseShenandoahGC -Xms256M -Xmx4G -Xlog:gc*=debug TestShenandoahWithLogLevel
|
||||
* @run main/othervm -XX:+UseShenandoahGC -Xms256M -Xmx4G -Xlog:gc*=trace TestShenandoahWithLogLevel
|
||||
* @run main/othervm -XX:+UseShenandoahGC -Xms256M -Xmx1G -Xlog:gc*=error TestShenandoahWithLogLevel
|
||||
* @run main/othervm -XX:+UseShenandoahGC -Xms256M -Xmx1G -Xlog:gc*=warning TestShenandoahWithLogLevel
|
||||
* @run main/othervm -XX:+UseShenandoahGC -Xms256M -Xmx1G -Xlog:gc*=info TestShenandoahWithLogLevel
|
||||
* @run main/othervm -XX:+UseShenandoahGC -Xms256M -Xmx1G -Xlog:gc*=debug TestShenandoahWithLogLevel
|
||||
* @run main/othervm -XX:+UseShenandoahGC -Xms256M -Xmx1G -Xlog:gc*=trace TestShenandoahWithLogLevel
|
||||
*/
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ import java.util.*;
|
||||
public class TestShenandoahWithLogLevel {
|
||||
public static void main(String[] args) {
|
||||
ArrayList<Object> list = new ArrayList<>();
|
||||
long count = 5000 * 1024 * 1024 / 16; // 500MB allocation
|
||||
long count = 300 * 1024 * 1024 / 16; // 300MB allocation
|
||||
for (long index = 0; index < count; index ++) {
|
||||
Object sink = new Object();
|
||||
list.add(sink);
|
||||
|
||||
@@ -25,25 +25,25 @@
|
||||
* @test AllocIntArrays
|
||||
* @summary Acceptance tests: collector can withstand allocation
|
||||
*
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:+ShenandoahVerify AllocIntArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=passive -XX:+ShenandoahVerify AllocIntArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=adaptive -XX:+ShenandoahVerify AllocIntArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=static -XX:+ShenandoahVerify AllocIntArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=connected -XX:+ShenandoahVerify AllocIntArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=generational -XX:+ShenandoahVerify AllocIntArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=LRU -XX:+ShenandoahVerify AllocIntArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:+ShenandoahVerify AllocIntArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=passive -XX:+ShenandoahVerify AllocIntArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=adaptive -XX:+ShenandoahVerify AllocIntArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=static -XX:+ShenandoahVerify AllocIntArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=connected -XX:+ShenandoahVerify AllocIntArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=generational -XX:+ShenandoahVerify AllocIntArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=LRU -XX:+ShenandoahVerify AllocIntArrays
|
||||
*
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:-UseTLAB -XX:+ShenandoahVerify AllocIntArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:-UseTLAB -XX:+ShenandoahVerify AllocIntArrays
|
||||
*
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g AllocIntArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=passive AllocIntArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=adaptive AllocIntArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=static AllocIntArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=continuous AllocIntArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=aggressive AllocIntArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=connected AllocIntArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=generational AllocIntArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=LRU AllocIntArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g AllocIntArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=passive AllocIntArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=adaptive AllocIntArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=static AllocIntArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=continuous AllocIntArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=aggressive AllocIntArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=connected AllocIntArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=generational AllocIntArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=LRU AllocIntArrays
|
||||
*/
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
@@ -25,25 +25,25 @@
|
||||
* @test AllocObjectArrays
|
||||
* @summary Acceptance tests: collector can withstand allocation
|
||||
*
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:+ShenandoahVerify AllocObjectArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=passive -XX:+ShenandoahVerify AllocObjectArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=adaptive -XX:+ShenandoahVerify AllocObjectArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=static -XX:+ShenandoahVerify AllocObjectArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=connected -XX:+ShenandoahVerify AllocObjectArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=generational -XX:+ShenandoahVerify AllocObjectArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=LRU -XX:+ShenandoahVerify AllocObjectArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:+ShenandoahVerify AllocObjectArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=passive -XX:+ShenandoahVerify AllocObjectArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=adaptive -XX:+ShenandoahVerify AllocObjectArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=static -XX:+ShenandoahVerify AllocObjectArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=connected -XX:+ShenandoahVerify AllocObjectArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=generational -XX:+ShenandoahVerify AllocObjectArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=LRU -XX:+ShenandoahVerify AllocObjectArrays
|
||||
*
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:-UseTLAB -XX:+ShenandoahVerify AllocObjectArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:-UseTLAB -XX:+ShenandoahVerify AllocObjectArrays
|
||||
*
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g AllocObjectArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=passive AllocObjectArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=adaptive AllocObjectArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=static AllocObjectArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=continuous AllocObjectArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=aggressive AllocObjectArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=connected AllocObjectArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=generational AllocObjectArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=LRU AllocObjectArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g AllocObjectArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=passive AllocObjectArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=adaptive AllocObjectArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=static AllocObjectArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=continuous AllocObjectArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=aggressive AllocObjectArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=connected AllocObjectArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=generational AllocObjectArrays
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=LRU AllocObjectArrays
|
||||
*/
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
@@ -25,23 +25,23 @@
|
||||
* @test AllocObjects
|
||||
* @summary Acceptance tests: collector can withstand allocation
|
||||
*
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:+ShenandoahVerify AllocObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=passive -XX:+ShenandoahVerify AllocObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=adaptive -XX:+ShenandoahVerify AllocObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=static -XX:+ShenandoahVerify AllocObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=connected -XX:+ShenandoahVerify AllocObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=generational -XX:+ShenandoahVerify AllocObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=LRU -XX:+ShenandoahVerify AllocObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:+ShenandoahVerify AllocObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=passive -XX:+ShenandoahVerify AllocObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=adaptive -XX:+ShenandoahVerify AllocObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=static -XX:+ShenandoahVerify AllocObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=connected -XX:+ShenandoahVerify AllocObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=generational -XX:+ShenandoahVerify AllocObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=LRU -XX:+ShenandoahVerify AllocObjects
|
||||
*
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g AllocObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=passive AllocObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=adaptive AllocObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=static AllocObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=continuous AllocObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=aggressive AllocObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=connected AllocObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=generational AllocObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=LRU AllocObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g AllocObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=passive AllocObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=adaptive AllocObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=static AllocObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=continuous AllocObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=aggressive AllocObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=connected AllocObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=generational AllocObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=LRU AllocObjects
|
||||
*/
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
@@ -25,25 +25,25 @@
|
||||
* @test HeapUncommit
|
||||
* @summary Acceptance tests: collector can withstand allocation
|
||||
*
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -XX:ShenandoahUncommitDelay=0 -XX:+ShenandoahVerify HeapUncommit
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -XX:ShenandoahUncommitDelay=0 -XX:ShenandoahGCHeuristics=passive -XX:+ShenandoahVerify HeapUncommit
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -XX:ShenandoahUncommitDelay=0 -XX:ShenandoahGCHeuristics=adaptive -XX:+ShenandoahVerify HeapUncommit
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -XX:ShenandoahUncommitDelay=0 -XX:ShenandoahGCHeuristics=static -XX:+ShenandoahVerify HeapUncommit
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -XX:ShenandoahUncommitDelay=0 -XX:ShenandoahGCHeuristics=connected -XX:+ShenandoahVerify HeapUncommit
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -XX:ShenandoahUncommitDelay=0 -XX:ShenandoahGCHeuristics=generational -XX:+ShenandoahVerify HeapUncommit
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -XX:ShenandoahUncommitDelay=0 -XX:ShenandoahGCHeuristics=LRU -XX:+ShenandoahVerify HeapUncommit
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -XX:ShenandoahUncommitDelay=0 -XX:+ShenandoahVerify HeapUncommit
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -XX:ShenandoahUncommitDelay=0 -XX:ShenandoahGCHeuristics=passive -XX:+ShenandoahVerify HeapUncommit
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -XX:ShenandoahUncommitDelay=0 -XX:ShenandoahGCHeuristics=adaptive -XX:+ShenandoahVerify HeapUncommit
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -XX:ShenandoahUncommitDelay=0 -XX:ShenandoahGCHeuristics=static -XX:+ShenandoahVerify HeapUncommit
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -XX:ShenandoahUncommitDelay=0 -XX:ShenandoahGCHeuristics=connected -XX:+ShenandoahVerify HeapUncommit
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -XX:ShenandoahUncommitDelay=0 -XX:ShenandoahGCHeuristics=generational -XX:+ShenandoahVerify HeapUncommit
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -XX:ShenandoahUncommitDelay=0 -XX:ShenandoahGCHeuristics=LRU -XX:+ShenandoahVerify HeapUncommit
|
||||
*
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -XX:ShenandoahUncommitDelay=0 -XX:-UseTLAB -XX:+ShenandoahVerify HeapUncommit
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -XX:ShenandoahUncommitDelay=0 -XX:-UseTLAB -XX:+ShenandoahVerify HeapUncommit
|
||||
*
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -XX:ShenandoahUncommitDelay=0 HeapUncommit
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -XX:ShenandoahUncommitDelay=0 -XX:ShenandoahGCHeuristics=passive HeapUncommit
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -XX:ShenandoahUncommitDelay=0 -XX:ShenandoahGCHeuristics=adaptive HeapUncommit
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -XX:ShenandoahUncommitDelay=0 -XX:ShenandoahGCHeuristics=static HeapUncommit
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -XX:ShenandoahUncommitDelay=0 -XX:ShenandoahGCHeuristics=continuous HeapUncommit
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -XX:ShenandoahUncommitDelay=0 -XX:ShenandoahGCHeuristics=aggressive HeapUncommit
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -XX:ShenandoahUncommitDelay=0 -XX:ShenandoahGCHeuristics=connected HeapUncommit
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -XX:ShenandoahUncommitDelay=0 -XX:ShenandoahGCHeuristics=generational HeapUncommit
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -XX:ShenandoahUncommitDelay=0 -XX:ShenandoahGCHeuristics=LRU HeapUncommit
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -XX:ShenandoahUncommitDelay=0 HeapUncommit
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -XX:ShenandoahUncommitDelay=0 -XX:ShenandoahGCHeuristics=passive HeapUncommit
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -XX:ShenandoahUncommitDelay=0 -XX:ShenandoahGCHeuristics=adaptive HeapUncommit
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -XX:ShenandoahUncommitDelay=0 -XX:ShenandoahGCHeuristics=static HeapUncommit
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -XX:ShenandoahUncommitDelay=0 -XX:ShenandoahGCHeuristics=continuous HeapUncommit
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -XX:ShenandoahUncommitDelay=0 -XX:ShenandoahGCHeuristics=aggressive HeapUncommit
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -XX:ShenandoahUncommitDelay=0 -XX:ShenandoahGCHeuristics=connected HeapUncommit
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -XX:ShenandoahUncommitDelay=0 -XX:ShenandoahGCHeuristics=generational HeapUncommit
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -XX:ShenandoahUncommitDelay=0 -XX:ShenandoahGCHeuristics=LRU HeapUncommit
|
||||
*/
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
@@ -25,9 +25,9 @@
|
||||
* @test ParallelRefprocSanity
|
||||
* @summary Test that reference processing works with both parallel and non-parallel variants.
|
||||
*
|
||||
* @run main/othervm -XX:+UseShenandoahGC -Xmx2g -Xms2g ParallelRefprocSanity
|
||||
* @run main/othervm -XX:+UseShenandoahGC -Xmx2g -Xms2g -XX:-ParallelRefProcEnabled ParallelRefprocSanity
|
||||
* @run main/othervm -XX:+UseShenandoahGC -Xmx2g -Xms2g -XX:+ParallelRefProcEnabled ParallelRefprocSanity
|
||||
* @run main/othervm -XX:+UseShenandoahGC -Xmx1g -Xms1g ParallelRefprocSanity
|
||||
* @run main/othervm -XX:+UseShenandoahGC -Xmx1g -Xms1g -XX:-ParallelRefProcEnabled ParallelRefprocSanity
|
||||
* @run main/othervm -XX:+UseShenandoahGC -Xmx1g -Xms1g -XX:+ParallelRefProcEnabled ParallelRefprocSanity
|
||||
*/
|
||||
|
||||
import java.lang.ref.*;
|
||||
|
||||
@@ -25,25 +25,25 @@
|
||||
* @test RetainObjects
|
||||
* @summary Acceptance tests: collector can deal with retained objects
|
||||
*
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:+ShenandoahVerify RetainObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=passive -XX:+ShenandoahVerify RetainObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=adaptive -XX:+ShenandoahVerify RetainObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=static -XX:+ShenandoahVerify RetainObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=connected -XX:+ShenandoahVerify RetainObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=generational -XX:+ShenandoahVerify RetainObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=LRU -XX:+ShenandoahVerify RetainObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:+ShenandoahVerify RetainObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=passive -XX:+ShenandoahVerify RetainObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=adaptive -XX:+ShenandoahVerify RetainObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=static -XX:+ShenandoahVerify RetainObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=connected -XX:+ShenandoahVerify RetainObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=generational -XX:+ShenandoahVerify RetainObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=LRU -XX:+ShenandoahVerify RetainObjects
|
||||
*
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:-UseTLAB -XX:+ShenandoahVerify RetainObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:-UseTLAB -XX:+ShenandoahVerify RetainObjects
|
||||
*
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g RetainObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=passive RetainObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=adaptive RetainObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=static RetainObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=continuous RetainObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=aggressive RetainObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=connected RetainObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=generational RetainObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx2g -Xms2g -XX:ShenandoahGCHeuristics=LRU RetainObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g RetainObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=passive RetainObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=adaptive RetainObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=static RetainObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=continuous RetainObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=aggressive RetainObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=connected RetainObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=generational RetainObjects
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=LRU RetainObjects
|
||||
*/
|
||||
|
||||
public class RetainObjects {
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
* @key gc
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @run main/othervm -XX:+UseShenandoahGC -Xmx2g -Xms2g
|
||||
* @run main/othervm -XX:+UseShenandoahGC -Xmx1g -Xms1g
|
||||
* -XX:+IgnoreUnrecognizedVMOptions
|
||||
* -XX:+UnlockExperimentalVMOptions
|
||||
* -XX:+UnlockDiagnosticVMOptions
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
/*
|
||||
* @test AlwaysPreTouch
|
||||
* @summary Check that Shenandoah's AlwaysPreTouch does not fire asserts
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+AlwaysPreTouch -Xmx2g AlwaysPreTouch
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+AlwaysPreTouch -Xms128m -Xmx2g AlwaysPreTouch
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+AlwaysPreTouch -Xms2g -Xmx2g AlwaysPreTouch
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+AlwaysPreTouch -Xmx1g AlwaysPreTouch
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+AlwaysPreTouch -Xms128m -Xmx1g AlwaysPreTouch
|
||||
* @run main/othervm -XX:+UseShenandoahGC -XX:+AlwaysPreTouch -Xms1g -Xmx1g AlwaysPreTouch
|
||||
*/
|
||||
|
||||
public class AlwaysPreTouch {
|
||||
|
||||
@@ -46,7 +46,7 @@ public class TestRegionSizeArgs {
|
||||
{
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseShenandoahGC",
|
||||
"-Xms2m",
|
||||
"-Xmx2g",
|
||||
"-Xmx1g",
|
||||
"-version");
|
||||
OutputAnalyzer output = new OutputAnalyzer(pb.start());
|
||||
output.shouldMatch("Initial heap size");
|
||||
@@ -56,7 +56,7 @@ public class TestRegionSizeArgs {
|
||||
{
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseShenandoahGC",
|
||||
"-Xms4m",
|
||||
"-Xmx2g",
|
||||
"-Xmx1g",
|
||||
"-version");
|
||||
OutputAnalyzer output = new OutputAnalyzer(pb.start());
|
||||
output.shouldHaveExitValue(0);
|
||||
@@ -65,7 +65,7 @@ public class TestRegionSizeArgs {
|
||||
{
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseShenandoahGC",
|
||||
"-Xms8m",
|
||||
"-Xmx2g",
|
||||
"-Xmx1g",
|
||||
"-version");
|
||||
OutputAnalyzer output = new OutputAnalyzer(pb.start());
|
||||
output.shouldHaveExitValue(0);
|
||||
@@ -74,7 +74,7 @@ public class TestRegionSizeArgs {
|
||||
{
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseShenandoahGC",
|
||||
"-Xms100m",
|
||||
"-Xmx2g",
|
||||
"-Xmx1g",
|
||||
"-XX:ShenandoahHeapRegionSize=200m",
|
||||
"-version");
|
||||
OutputAnalyzer output = new OutputAnalyzer(pb.start());
|
||||
@@ -85,7 +85,7 @@ public class TestRegionSizeArgs {
|
||||
{
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseShenandoahGC",
|
||||
"-Xms100m",
|
||||
"-Xmx2g",
|
||||
"-Xmx1g",
|
||||
"-XX:ShenandoahHeapRegionSize=11m",
|
||||
"-version");
|
||||
OutputAnalyzer output = new OutputAnalyzer(pb.start());
|
||||
@@ -96,7 +96,7 @@ public class TestRegionSizeArgs {
|
||||
{
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseShenandoahGC",
|
||||
"-Xms100m",
|
||||
"-Xmx2g",
|
||||
"-Xmx1g",
|
||||
"-XX:ShenandoahHeapRegionSize=9m",
|
||||
"-version");
|
||||
OutputAnalyzer output = new OutputAnalyzer(pb.start());
|
||||
@@ -106,7 +106,7 @@ public class TestRegionSizeArgs {
|
||||
{
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseShenandoahGC",
|
||||
"-Xms100m",
|
||||
"-Xmx2g",
|
||||
"-Xmx1g",
|
||||
"-XX:ShenandoahHeapRegionSize=255K",
|
||||
"-version");
|
||||
OutputAnalyzer output = new OutputAnalyzer(pb.start());
|
||||
@@ -117,7 +117,7 @@ public class TestRegionSizeArgs {
|
||||
{
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseShenandoahGC",
|
||||
"-Xms100m",
|
||||
"-Xmx2g",
|
||||
"-Xmx1g",
|
||||
"-XX:ShenandoahHeapRegionSize=260K",
|
||||
"-version");
|
||||
OutputAnalyzer output = new OutputAnalyzer(pb.start());
|
||||
@@ -127,7 +127,7 @@ public class TestRegionSizeArgs {
|
||||
{
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseShenandoahGC",
|
||||
"-Xms1g",
|
||||
"-Xmx2g",
|
||||
"-Xmx1g",
|
||||
"-XX:+UnlockExperimentalVMOptions",
|
||||
"-XX:ShenandoahHeapRegionSize=32M",
|
||||
"-version");
|
||||
@@ -138,7 +138,7 @@ public class TestRegionSizeArgs {
|
||||
{
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseShenandoahGC",
|
||||
"-Xms1g",
|
||||
"-Xmx2g",
|
||||
"-Xmx1g",
|
||||
"-XX:+UnlockExperimentalVMOptions",
|
||||
"-XX:ShenandoahHeapRegionSize=64M",
|
||||
"-version");
|
||||
@@ -150,7 +150,7 @@ public class TestRegionSizeArgs {
|
||||
{
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseShenandoahGC",
|
||||
"-Xms1g",
|
||||
"-Xmx2g",
|
||||
"-Xmx1g",
|
||||
"-XX:+UnlockExperimentalVMOptions",
|
||||
"-XX:ShenandoahHeapRegionSize=256K",
|
||||
"-version");
|
||||
@@ -161,7 +161,7 @@ public class TestRegionSizeArgs {
|
||||
{
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseShenandoahGC",
|
||||
"-Xms1g",
|
||||
"-Xmx2g",
|
||||
"-Xmx1g",
|
||||
"-XX:+UnlockExperimentalVMOptions",
|
||||
"-XX:ShenandoahHeapRegionSize=128K",
|
||||
"-version");
|
||||
@@ -176,7 +176,7 @@ public class TestRegionSizeArgs {
|
||||
{
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseShenandoahGC",
|
||||
"-Xms100m",
|
||||
"-Xmx2g",
|
||||
"-Xmx1g",
|
||||
"-XX:+UnlockExperimentalVMOptions",
|
||||
"-XX:ShenandoahMinRegionSize=255K",
|
||||
"-version");
|
||||
@@ -188,7 +188,7 @@ public class TestRegionSizeArgs {
|
||||
{
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseShenandoahGC",
|
||||
"-Xms100m",
|
||||
"-Xmx2g",
|
||||
"-Xmx1g",
|
||||
"-XX:+UnlockExperimentalVMOptions",
|
||||
"-XX:ShenandoahMinRegionSize=1M",
|
||||
"-XX:ShenandoahMaxRegionSize=260K",
|
||||
@@ -200,7 +200,7 @@ public class TestRegionSizeArgs {
|
||||
{
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseShenandoahGC",
|
||||
"-Xms100m",
|
||||
"-Xmx2g",
|
||||
"-Xmx1g",
|
||||
"-XX:+UnlockExperimentalVMOptions",
|
||||
"-XX:ShenandoahMinRegionSize=200m",
|
||||
"-version");
|
||||
@@ -212,7 +212,7 @@ public class TestRegionSizeArgs {
|
||||
{
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseShenandoahGC",
|
||||
"-Xms100m",
|
||||
"-Xmx2g",
|
||||
"-Xmx1g",
|
||||
"-XX:+UnlockExperimentalVMOptions",
|
||||
"-XX:ShenandoahMinRegionSize=11m",
|
||||
"-version");
|
||||
@@ -224,7 +224,7 @@ public class TestRegionSizeArgs {
|
||||
{
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseShenandoahGC",
|
||||
"-Xms100m",
|
||||
"-Xmx2g",
|
||||
"-Xmx1g",
|
||||
"-XX:+UnlockExperimentalVMOptions",
|
||||
"-XX:ShenandoahMinRegionSize=9m",
|
||||
"-version");
|
||||
@@ -239,7 +239,7 @@ public class TestRegionSizeArgs {
|
||||
{
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseShenandoahGC",
|
||||
"-Xms100m",
|
||||
"-Xmx2g",
|
||||
"-Xmx1g",
|
||||
"-XX:+UnlockExperimentalVMOptions",
|
||||
"-XX:ShenandoahMaxRegionSize=255K",
|
||||
"-version");
|
||||
@@ -251,7 +251,7 @@ public class TestRegionSizeArgs {
|
||||
{
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseShenandoahGC",
|
||||
"-Xms100m",
|
||||
"-Xmx2g",
|
||||
"-Xmx1g",
|
||||
"-XX:+UnlockExperimentalVMOptions",
|
||||
"-XX:ShenandoahMinRegionSize=1M",
|
||||
"-XX:ShenandoahMaxRegionSize=260K",
|
||||
|
||||
@@ -30,16 +30,16 @@ import java.io.IOException;
|
||||
* @requires vm.flavor == "server"
|
||||
* @summary Stress the Shenandoah GC by trying to make old objects more likely to be garbage than young objects.
|
||||
*
|
||||
* @run main/othervm/timeout=200 -Xlog:gc*=info -Xmx2g -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahVerify TestGCBasherWithShenandoah 120000
|
||||
* @run main/othervm/timeout=200 -Xlog:gc*=info -Xmx2g -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=passive -XX:+ShenandoahVerify TestGCBasherWithShenandoah 120000
|
||||
* @run main/othervm/timeout=200 -Xlog:gc*=info -Xmx2g -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=adaptive -XX:+ShenandoahVerify TestGCBasherWithShenandoah 120000
|
||||
* @run main/othervm/timeout=200 -Xlog:gc*=info -Xmx2g -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=static -XX:+ShenandoahVerify TestGCBasherWithShenandoah 120000
|
||||
* @run main/othervm/timeout=200 -Xlog:gc*=info -Xmx2g -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=connected -XX:+ShenandoahVerify TestGCBasherWithShenandoah 120000
|
||||
* @run main/othervm/timeout=200 -Xlog:gc*=info -Xmx2g -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=generational -XX:+ShenandoahVerify TestGCBasherWithShenandoah 120000
|
||||
* @run main/othervm/timeout=200 -Xlog:gc*=info -Xmx2g -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=LRU -XX:+ShenandoahVerify TestGCBasherWithShenandoah 120000
|
||||
* @run main/othervm/timeout=200 -Xlog:gc*=info -Xmx2g -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=continuous TestGCBasherWithShenandoah 120000
|
||||
* @run main/othervm/timeout=200 -Xlog:gc*=info -Xmx2g -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=aggressive TestGCBasherWithShenandoah 120000
|
||||
* @run main/othervm/timeout=200 -Xlog:gc*=info -Xmx2g -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=aggressive -XX:+ShenandoahOOMDuringEvacALot TestGCBasherWithShenandoah 120000
|
||||
* @run main/othervm/timeout=200 -Xlog:gc*=info -Xmx1g -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahVerify TestGCBasherWithShenandoah 120000
|
||||
* @run main/othervm/timeout=200 -Xlog:gc*=info -Xmx1g -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=passive -XX:+ShenandoahVerify TestGCBasherWithShenandoah 120000
|
||||
* @run main/othervm/timeout=200 -Xlog:gc*=info -Xmx1g -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=adaptive -XX:+ShenandoahVerify TestGCBasherWithShenandoah 120000
|
||||
* @run main/othervm/timeout=200 -Xlog:gc*=info -Xmx1g -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=static -XX:+ShenandoahVerify TestGCBasherWithShenandoah 120000
|
||||
* @run main/othervm/timeout=200 -Xlog:gc*=info -Xmx1g -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=connected -XX:+ShenandoahVerify TestGCBasherWithShenandoah 120000
|
||||
* @run main/othervm/timeout=200 -Xlog:gc*=info -Xmx1g -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=generational -XX:+ShenandoahVerify TestGCBasherWithShenandoah 120000
|
||||
* @run main/othervm/timeout=200 -Xlog:gc*=info -Xmx1g -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=LRU -XX:+ShenandoahVerify TestGCBasherWithShenandoah 120000
|
||||
* @run main/othervm/timeout=200 -Xlog:gc*=info -Xmx1g -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=continuous TestGCBasherWithShenandoah 120000
|
||||
* @run main/othervm/timeout=200 -Xlog:gc*=info -Xmx1g -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=aggressive TestGCBasherWithShenandoah 120000
|
||||
* @run main/othervm/timeout=200 -Xlog:gc*=info -Xmx1g -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=aggressive -XX:+ShenandoahOOMDuringEvacALot TestGCBasherWithShenandoah 120000
|
||||
*/
|
||||
public class TestGCBasherWithShenandoah {
|
||||
public static void main(String[] args) throws IOException {
|
||||
|
||||
Reference in New Issue
Block a user