8249000: vm.gc.X should take selected JIT into account

Reviewed-by: kvn
This commit is contained in:
Igor Ignatyev 2020-07-10 11:52:35 -07:00
parent c5ad1daa96
commit 04280a0d05
131 changed files with 236 additions and 207 deletions

View File

@ -229,6 +229,7 @@ compiler/intrinsics/mathexact/LongMulOverflowTest.java 8207267 generic-all
compiler/loopopts/TestOverunrolling.java 8207267 generic-all
compiler/jsr292/NonInlinedCall/InvokeTest.java 8207267 generic-all
compiler/codegen/TestTrichotomyExpressions.java 8207267 generic-all
gc/stress/TestReclaimStringsLeaksMemory.java 8207267 generic-all
runtime/exceptionMsgs/AbstractMethodError/AbstractMethodErrorTest.java 8222582 generic-all

View File

@ -27,7 +27,7 @@
* @bug 8059022
* @modules java.base/jdk.internal.misc:+open
* @summary Validate barriers after Unsafe getReference, CAS and swap (GetAndSet)
* @requires vm.gc.Z & !vm.graal.enabled
* @requires vm.gc.Z
* @library /test/lib
* @run main/othervm -XX:+UseZGC -XX:+UnlockDiagnosticVMOptions -XX:+ZVerifyViews -XX:ZCollectionInterval=1 -XX:-CreateCoredumpOnCrash -XX:CompileCommand=dontinline,*::mergeImpl* compiler.gcbarriers.UnsafeIntrinsicsTest
*/

View File

@ -23,7 +23,7 @@
/*
* @test
* @requires vm.gc.Z & !vm.graal.enabled
* @requires vm.gc.Z
* @bug 8237859
* @summary A LoadP node has a wrong control input (too early) which results in an out-of-bounds read of an object array with ZGC.
*

View File

@ -28,7 +28,8 @@ package gc;
* @test CriticalNativeStressEpsilon
* @bug 8199868
* @library /
* @requires (os.arch =="x86_64" | os.arch == "amd64" | os.arch=="x86" | os.arch=="i386") & vm.gc.Epsilon & !vm.graal.enabled
* @requires os.arch =="x86_64" | os.arch == "amd64" | os.arch=="x86" | os.arch=="i386"
* @requires vm.gc.Epsilon
* @summary test argument unpacking nmethod wrapper of critical native method
* @run main/othervm/native -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -Xcomp -Xmx256M -XX:+CriticalJNINatives gc.CriticalNativeArgs
*/
@ -37,7 +38,8 @@ package gc;
* @test CriticalNativeStressShenandoah
* @bug 8199868
* @library /
* @requires (os.arch =="x86_64" | os.arch == "amd64" | os.arch=="x86" | os.arch=="i386") & vm.gc.Shenandoah & !vm.graal.enabled
* @requires os.arch =="x86_64" | os.arch == "amd64" | os.arch=="x86" | os.arch=="i386"
* @requires vm.gc.Shenandoah
* @summary test argument unpacking nmethod wrapper of critical native method
* @run main/othervm/native -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive -XX:+ShenandoahDegeneratedGC -Xcomp -Xmx512M -XX:+CriticalJNINatives gc.CriticalNativeArgs
* @run main/othervm/native -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive -XX:-ShenandoahDegeneratedGC -Xcomp -Xmx512M -XX:+CriticalJNINatives gc.CriticalNativeArgs

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -49,7 +49,7 @@ import jdk.internal.vm.annotation.Contended;
/*
* @test TestHumongousReferenceObjectShenandoah
* @summary Test that verifies that iteration over large, plain Java objects, that potentially cross region boundaries, with references in them works.
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @bug 8151499 8153734
* @modules java.base/jdk.internal.vm.annotation
* @run main/othervm -XX:+EnableContended -XX:-RestrictContended -Xms128m -Xmx128m -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ShenandoahRegionSize=8M -XX:ContendedPaddingWidth=8192 gc.TestHumongousReferenceObject

View File

@ -49,7 +49,7 @@ package gc;
/*
* @test TestSystemGCShenandoah
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @summary Runs System.gc() with different flags.
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC gc.TestSystemGC
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:+ExplicitGCInvokesConcurrent gc.TestSystemGC

View File

@ -51,8 +51,7 @@ package gc.arguments;
/**
* @test TestAlignmentToUseLargePagesShenandoah
* @bug 8024396
* @comment Graal does not support Shenandoah
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @run main/othervm -Xms71M -Xmx91M -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:+UseLargePages gc.arguments.TestAlignmentToUseLargePages
* @run main/othervm -Xms71M -Xmx91M -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:-UseLargePages gc.arguments.TestAlignmentToUseLargePages
*/

View File

@ -68,8 +68,7 @@ package gc.arguments;
/*
* @test TestUseCompressedOopsErgoShenandoah
* @bug 8010722
* @comment Graal does not support Shenandoah
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
* @library /
* @modules java.base/jdk.internal.misc

View File

@ -77,8 +77,7 @@ package gc.class_unloading;
/*
* @test TestClassUnloadingDisabledShenandoah
* @bug 8114823
* @comment Graal does not support Shenandoah
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @requires vm.opt.ExplicitGCInvokesConcurrent != true
* @requires vm.opt.ClassUnloading != true
* @library /test/lib

View File

@ -25,7 +25,7 @@ package gc.epsilon;
/**
* @test TestAlignment
* @requires vm.gc.Epsilon & !vm.graal.enabled
* @requires vm.gc.Epsilon
* @summary Check Epsilon runs fine with (un)usual alignments
* @bug 8212005
* @run main/othervm -XX:+UnlockExperimentalVMOptions -Xmx128m -XX:+UseEpsilonGC -XX:+UseTLAB gc.epsilon.TestAlignment

View File

@ -23,7 +23,7 @@
/**
* @test TestAlwaysPretouch
* @requires vm.gc.Epsilon & !vm.graal.enabled
* @requires vm.gc.Epsilon
* @summary Basic sanity test for Epsilon
* @run main/othervm -Xms128m -Xmx1g -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestAlwaysPretouch
* @run main/othervm -Xms128m -Xmx1g -XX:-AlwaysPreTouch -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestAlwaysPretouch

View File

@ -25,7 +25,7 @@ package gc.epsilon;
/**
* @test TestArraycopyCheckcast
* @requires vm.gc.Epsilon & !vm.graal.enabled
* @requires vm.gc.Epsilon
* @summary Epsilon is able to handle checkcasted array copies
* @library /test/lib
* @bug 8215724

View File

@ -26,7 +26,7 @@ package gc.epsilon;
/**
* @test TestByteArrays
* @key randomness
* @requires vm.gc.Epsilon & !vm.graal.enabled
* @requires vm.gc.Epsilon
* @summary Epsilon is able to allocate arrays, and does not corrupt their state
* @library /test/lib
*

View File

@ -25,7 +25,7 @@ package gc.epsilon;
/**
* @test TestClasses
* @requires vm.gc.Epsilon & !vm.graal.enabled
* @requires vm.gc.Epsilon
* @summary Epsilon is able to allocate a lot of classes
*
* @modules java.base/jdk.internal.org.objectweb.asm

View File

@ -25,7 +25,7 @@ package gc.epsilon;
/**
* @test TestDieDefault
* @requires vm.gc.Epsilon & !vm.graal.enabled
* @requires vm.gc.Epsilon
* @summary Epsilon GC should die on heap exhaustion
* @library /test/lib
* @run driver gc.epsilon.TestDieDefault

View File

@ -25,7 +25,7 @@ package gc.epsilon;
/**
* @test TestDieWithHeapDump
* @requires vm.gc.Epsilon & !vm.graal.enabled
* @requires vm.gc.Epsilon
* @summary Epsilon GC should die on heap exhaustion with error handler attached
* @library /test/lib
* @run driver gc.epsilon.TestDieWithHeapDump

View File

@ -25,7 +25,7 @@ package gc.epsilon;
/**
* @test TestDieWithOnError
* @requires vm.gc.Epsilon & !vm.graal.enabled
* @requires vm.gc.Epsilon
* @summary Epsilon GC should die on heap exhaustion with error handler attached
* @library /test/lib
* @run driver gc.epsilon.TestDieWithOnError

View File

@ -26,7 +26,7 @@ package gc.epsilon;
/**
* @test TestElasticTLAB
* @key randomness
* @requires vm.gc.Epsilon & !vm.graal.enabled
* @requires vm.gc.Epsilon
* @summary Epsilon is able to work with/without elastic TLABs
* @library /test/lib
*

View File

@ -26,7 +26,7 @@ package gc.epsilon;
/**
* @test TestElasticTLABDecay
* @key randomness
* @requires vm.gc.Epsilon & !vm.graal.enabled
* @requires vm.gc.Epsilon
* @summary Epsilon is able to work with/without elastic TLABs
* @library /test/lib
*

View File

@ -25,7 +25,7 @@ package gc.epsilon;
/**
* @test TestAlwaysPretouch
* @requires vm.gc.Epsilon & !vm.graal.enabled
* @requires vm.gc.Epsilon
* @summary Basic sanity test for Epsilon
* @library /test/lib
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestEpsilonEnabled

View File

@ -25,7 +25,7 @@ package gc.epsilon;
/**
* @test TestHelloWorld
* @requires vm.gc.Epsilon & !vm.graal.enabled
* @requires vm.gc.Epsilon
* @summary Basic sanity test for Epsilon
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestHelloWorld
*/

View File

@ -26,7 +26,7 @@ package gc.epsilon;
/**
* @test TestLogTrace
* @requires vm.gc.Epsilon & !vm.graal.enabled
* @requires vm.gc.Epsilon
* @summary Test that tracing does not crash Epsilon
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -Xlog:gc*=trace gc.epsilon.TestLogTrace
*/

View File

@ -25,7 +25,7 @@ package gc.epsilon;
/**
* @test TestManyThreads
* @requires vm.gc.Epsilon & !vm.graal.enabled
* @requires vm.gc.Epsilon
* @summary Test allocations from many threads
*
* @run main/othervm -Xmx128m -Xss512k -XX:-UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestManyThreads

View File

@ -25,7 +25,7 @@ package gc.epsilon;
/**
* @test TestMaxTLAB
* @requires vm.gc.Epsilon & !vm.graal.enabled
* @requires vm.gc.Epsilon
* @summary Check EpsilonMaxTLAB options
* @bug 8212177
*

View File

@ -26,7 +26,7 @@ package gc.epsilon;
/**
* @test TestMemoryMXBeans
* @requires vm.gc.Epsilon & !vm.graal.enabled
* @requires vm.gc.Epsilon
* @summary Test JMX memory beans
* @modules java.base/jdk.internal.misc
* java.management

View File

@ -26,7 +26,7 @@ package gc.epsilon;
/**
* @test TestMemoryPools
* @requires vm.gc.Epsilon & !vm.graal.enabled
* @requires vm.gc.Epsilon
* @summary Test JMX memory pools
* @modules java.base/jdk.internal.misc
* java.management

View File

@ -26,7 +26,7 @@ package gc.epsilon;
/**
* @test TestObjects
* @key randomness
* @requires vm.gc.Epsilon & !vm.graal.enabled
* @requires vm.gc.Epsilon
* @summary Epsilon is able to allocate objects, and does not corrupt their state
* @library /test/lib
*

View File

@ -25,7 +25,7 @@ package gc.epsilon;
/**
* @test TestPrintSteps
* @requires vm.gc.Epsilon & !vm.graal.enabled
* @requires vm.gc.Epsilon
* @summary Tests -XX:EpsilonPrintHeapSteps works
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -Xlog:gc -XX:EpsilonPrintHeapSteps=0 gc.epsilon.TestPrintHeapSteps
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -Xlog:gc -XX:EpsilonPrintHeapSteps=1 gc.epsilon.TestPrintHeapSteps

View File

@ -26,7 +26,7 @@ package gc.epsilon;
/**
* @test TestRefArrays
* @key randomness
* @requires vm.gc.Epsilon & !vm.graal.enabled
* @requires vm.gc.Epsilon
* @summary Epsilon is able to allocate arrays, and does not corrupt their state
* @library /test/lib
*

View File

@ -25,7 +25,7 @@ package gc.epsilon;
/**
* @test TestUpdateCountersSteps
* @requires vm.gc.Epsilon & !vm.graal.enabled
* @requires vm.gc.Epsilon
* @summary Test EpsilonUpdateCountersStep works
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -Xlog:gc -XX:EpsilonUpdateCountersStep=1 gc.epsilon.TestUpdateCountersSteps
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -Xlog:gc -XX:EpsilonUpdateCountersStep=10 gc.epsilon.TestUpdateCountersSteps

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -81,7 +81,7 @@ import gc.testlibrary.PerfCounters;
/* @test TestMetaspacePerfCountersShenandoah
* @bug 8014659
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib /
* @summary Tests that performance counters for metaspace and compressed class
* space exists and works.

View File

@ -26,7 +26,7 @@
* @test TestAllocHumongousFragment
* @summary Make sure Shenandoah can recover from humongous allocation fragmentation
* @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
*
* @run main/othervm -Xmx1g -Xms1g -Xlog:gc -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahTargetNumRegions=2048
@ -54,7 +54,7 @@
* @test TestAllocHumongousFragment
* @summary Make sure Shenandoah can recover from humongous allocation fragmentation
* @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
*
* @run main/othervm -Xmx1g -Xms1g -Xlog:gc -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahTargetNumRegions=2048
@ -99,7 +99,7 @@
* @test TestAllocHumongousFragment
* @summary Make sure Shenandoah can recover from humongous allocation fragmentation
* @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
*
* @run main/othervm -Xlog:gc -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahTargetNumRegions=2048

View File

@ -26,7 +26,7 @@
* @test TestAllocIntArrays
* @summary Acceptance tests: collector can withstand allocation
* @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
*
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g
@ -54,7 +54,7 @@
* @test TestAllocIntArrays
* @summary Acceptance tests: collector can withstand allocation
* @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
*
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g
@ -108,7 +108,7 @@
* @test TestAllocIntArrays
* @summary Acceptance tests: collector can withstand allocation
* @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
*
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g

View File

@ -26,7 +26,7 @@
* @test TestAllocObjectArrays
* @summary Acceptance tests: collector can withstand allocation
* @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
*
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g
@ -54,7 +54,7 @@
* @test TestAllocObjectArrays
* @summary Acceptance tests: collector can withstand allocation
* @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
*
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g
@ -108,7 +108,7 @@
* @test TestAllocObjectArrays
* @summary Acceptance tests: collector can withstand allocation
* @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
*
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g

View File

@ -25,7 +25,7 @@
/*
* @test TestAllocObjects
* @summary Acceptance tests: collector can withstand allocation
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive
@ -51,7 +51,7 @@
/*
* @test TestAllocObjects
* @summary Acceptance tests: collector can withstand allocation
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive
@ -118,7 +118,7 @@
/*
* @test TestAllocObjects
* @summary Acceptance tests: collector can withstand allocation
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu -XX:ShenandoahGCHeuristics=aggressive

View File

@ -24,7 +24,7 @@
/*
* @test TestArrayCopyCheckCast
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:TieredStopAtLevel=0 -Xmx16m TestArrayCopyCheckCast
*/

View File

@ -28,7 +28,7 @@ import jdk.test.lib.Utils;
/*
* @test TestArrayCopyStress
* @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
*
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:TieredStopAtLevel=0 -Xmx16m TestArrayCopyStress

View File

@ -26,7 +26,7 @@
* @test TestElasticTLAB
* @key randomness
* @summary Test that Shenandoah is able to work with elastic TLABs
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
*
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx1g -XX:-UseTLAB -XX:-ShenandoahElasticTLAB -XX:+ShenandoahVerify TestElasticTLAB

View File

@ -25,7 +25,7 @@
/*
* @test TestEvilSyncBug
* @summary Tests for crash/assert when attaching init thread during shutdown
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management

View File

@ -25,7 +25,7 @@
/**
* @test TestGCThreadGroups
* @summary Test Shenandoah GC uses concurrent/parallel threads correctly
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -Xmx16m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive
@ -37,7 +37,7 @@
/**
* @test TestGCThreadGroups
* @summary Test Shenandoah GC uses concurrent/parallel threads correctly
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -Xmx16m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC
@ -79,7 +79,7 @@
/**
* @test TestGCThreadGroups
* @summary Test Shenandoah GC uses concurrent/parallel threads correctly
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -Xmx16m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu

View File

@ -26,7 +26,7 @@
* @test TestHeapUncommit
* @summary Acceptance tests: collector can withstand allocation
* @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
*
* @run main/othervm -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahUncommit -XX:ShenandoahUncommitDelay=0
@ -54,7 +54,7 @@
* @test TestHeapUncommit
* @summary Acceptance tests: collector can withstand allocation
* @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
*
* @run main/othervm -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahUncommit -XX:ShenandoahUncommitDelay=0
@ -88,7 +88,7 @@
* @test TestHeapUncommit
* @summary Acceptance tests: collector can withstand allocation
* @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
*
* @run main/othervm -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahUncommit -XX:ShenandoahUncommitDelay=0
@ -108,7 +108,8 @@
/*
* @test TestHeapUncommit
* @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled & (vm.bits == "64")
* @requires vm.gc.Shenandoah
* @requires vm.bits == "64"
* @library /test/lib
*
* @run main/othervm -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahUncommit -XX:ShenandoahUncommitDelay=0 -XX:+UseLargePages

View File

@ -25,7 +25,7 @@
/*
* @test TestHumongousThreshold
* @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
*
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx1g
@ -71,7 +71,8 @@
/*
* @test TestHumongousThreshold
* @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled & (vm.bits == "64")
* @requires vm.gc.Shenandoah
* @requires vm.bits == "64"
* @library /test/lib
*
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx1g

View File

@ -26,7 +26,8 @@
* @test TestLargeObjectAlignment
* @summary Shenandoah crashes with -XX:ObjectAlignmentInBytes=16
* @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled & (vm.bits == "64")
* @requires vm.gc.Shenandoah
* @requires vm.bits == "64"
* @library /test/lib
*
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ObjectAlignmentInBytes=16 -Xint TestLargeObjectAlignment

View File

@ -24,7 +24,7 @@
/*
* @test TestLotsOfCycles
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm/timeout=480 -Xmx16m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive
@ -41,7 +41,7 @@
/*
* @test TestLotsOfCycles
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm/timeout=480 -Xmx16m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive
@ -78,7 +78,7 @@
/*
* @test TestLotsOfCycles
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm/timeout=480 -Xmx16m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu -XX:ShenandoahGCHeuristics=aggressive

View File

@ -26,7 +26,7 @@
* @test TestObjIterWithHeapDump
* @summary Test heap dump triggered heap object iteration
* @bug 8225014
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
* @run driver TestObjItrWithHeapDump
*/

View File

@ -25,7 +25,7 @@
/*
* @test TestParallelRefprocSanity
* @summary Test that reference processing works with both parallel and non-parallel variants.
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx1g -Xms1g TestParallelRefprocSanity
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx1g -Xms1g -XX:-ParallelRefProcEnabled TestParallelRefprocSanity

View File

@ -25,7 +25,7 @@
/*
* @test TestPeriodicGC
* @summary Test that periodic GC is working
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
* @run driver TestPeriodicGC
*/

View File

@ -25,7 +25,7 @@
/*
* @test TestRefprocSanity
* @summary Test that null references/referents work fine
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC
@ -44,7 +44,7 @@
/*
* @test TestRefprocSanity
* @summary Test that null references/referents work fine
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu

View File

@ -24,7 +24,7 @@
/*
* @test TestRegionSampling
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahRegionSampling
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive
@ -39,7 +39,7 @@
/*
* @test TestRegionSampling
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahRegionSampling
* -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive
@ -60,7 +60,7 @@
/*
* @test TestRegionSampling
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahRegionSampling
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu -XX:ShenandoahGCHeuristics=aggressive

View File

@ -25,7 +25,7 @@
/*
* @test TestRetainObjects
* @summary Acceptance tests: collector can deal with retained objects
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive
@ -51,7 +51,7 @@
/*
* @test TestRetainObjects
* @summary Acceptance tests: collector can deal with retained objects
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive
@ -93,7 +93,7 @@
/*
* @test TestRetainObjects
* @summary Acceptance tests: collector can deal with retained objects
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu -XX:ShenandoahGCHeuristics=aggressive

View File

@ -26,7 +26,7 @@
* @test TestSieveObjects
* @summary Acceptance tests: collector can deal with retained objects
* @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
*
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
@ -54,7 +54,7 @@
* @test TestSieveObjects
* @summary Acceptance tests: collector can deal with retained objects
* @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
*
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
@ -98,7 +98,7 @@
* @test TestSieveObjects
* @summary Acceptance tests: collector can deal with retained objects
* @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
*
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions

View File

@ -24,7 +24,7 @@
/*
* @test TestSmallHeap
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC TestSmallHeap
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx64m TestSmallHeap

View File

@ -26,7 +26,7 @@
* @test TestStringDedup
* @summary Test Shenandoah string deduplication implementation
* @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
* @modules java.base/jdk.internal.misc:open
* @modules java.base/java.lang:open
@ -47,7 +47,7 @@
* @test TestStringDedup
* @summary Test Shenandoah string deduplication implementation
* @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
* @modules java.base/jdk.internal.misc:open
* @modules java.base/java.lang:open
@ -70,7 +70,7 @@
* @test TestStringDedup
* @summary Test Shenandoah string deduplication implementation
* @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
* @modules java.base/jdk.internal.misc:open
* @modules java.base/java.lang:open

View File

@ -26,7 +26,7 @@
* @test TestStringDedupStress
* @summary Test Shenandoah string deduplication implementation
* @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
* @modules java.base/jdk.internal.misc:open
* @modules java.base/java.lang:open
@ -47,7 +47,7 @@
* @test TestStringDedupStress
* @summary Test Shenandoah string deduplication implementation
* @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
* @modules java.base/jdk.internal.misc:open
* @modules java.base/java.lang:open
@ -78,7 +78,7 @@
* @test TestStringDedupStress
* @summary Test Shenandoah string deduplication implementation
* @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
* @modules java.base/jdk.internal.misc:open
* @modules java.base/java.lang:open

View File

@ -25,7 +25,7 @@
/*
* @test TestStringInternCleanup
* @summary Check that Shenandoah cleans up interned strings
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -Xmx64m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ClassUnloadingWithConcurrentMark
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive
@ -51,7 +51,7 @@
/*
* @test TestStringInternCleanup
* @summary Check that Shenandoah cleans up interned strings
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -Xmx64m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ClassUnloadingWithConcurrentMark
* -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive
@ -78,7 +78,7 @@
/*
* @test TestStringInternCleanup
* @summary Check that Shenandoah cleans up interned strings
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -Xmx64m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ClassUnloadingWithConcurrentMark
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu

View File

@ -25,7 +25,7 @@
/*
* @test TestVerifyJCStress
* @summary Tests that we pass at least one jcstress-like test with all verification turned on
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @modules java.base/jdk.internal.misc
* java.management
*
@ -43,7 +43,7 @@
/*
* @test TestVerifyJCStress
* @summary Tests that we pass at least one jcstress-like test with all verification turned on
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @modules java.base/jdk.internal.misc
* java.management
*
@ -61,7 +61,7 @@
/*
* @test TestVerifyJCStress
* @summary Tests that we pass at least one jcstress-like test with all verification turned on
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @modules java.base/jdk.internal.misc
* java.management
*

View File

@ -24,7 +24,7 @@
/*
* @test TestVerifyLevels
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -Xmx128m -XX:+ShenandoahVerify -XX:ShenandoahVerifyLevel=0 TestVerifyLevels
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -Xmx128m -XX:+ShenandoahVerify -XX:ShenandoahVerifyLevel=1 TestVerifyLevels

View File

@ -25,7 +25,7 @@
/*
* @test TestWithLogLevel
* @summary Test Shenandoah with different log levels
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xms256M -Xmx1G -Xlog:gc*=error TestWithLogLevel
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xms256M -Xmx1G -Xlog:gc*=warning TestWithLogLevel

View File

@ -24,7 +24,7 @@
/*
* @test TestWrongArrayMember
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -Xmx128m -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC TestWrongArrayMember
* @run main/othervm -Xmx128m -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu TestWrongArrayMember

View File

@ -26,7 +26,7 @@
* @bug 8237837 8244721
* @summary Shenandoah: assert(mem == __null) failed: only one safepoint
* @requires vm.flavor == "server"
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xcomp -XX:CompileOnly=BarrierInInfiniteLoop::test1
* -XX:CompileOnly=BarrierInInfiniteLoop::test2 -XX:CompileOnly=BarrierInInfiniteLoop::test3 -XX:CompileCommand=quiet BarrierInInfiniteLoop

View File

@ -25,7 +25,7 @@
* @test
* @bug 8231405
* @summary barrier expansion breaks if barrier is right after call to rethrow stub
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -XX:CompileOnly=CallMultipleCatchProjs::test -Xcomp -Xverify:none -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC CallMultipleCatchProjs
*

View File

@ -24,7 +24,7 @@
/**
* @test 8238385
* @summary CTW: C2 (Shenandoah) compilation fails with "Range check dependent CastII node was not removed"
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @modules java.base/jdk.internal.misc:+open
*
* @run main/othervm -XX:-UseOnStackReplacement -XX:-BackgroundCompilation -XX:-TieredCompilation -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC

View File

@ -26,7 +26,7 @@
* @bug 8237007
* @summary Shenandoah: assert(_base == Tuple) failure during C2 compilation
* @requires vm.flavor == "server"
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:-BackgroundCompilation -XX:+UseShenandoahGC LRBRightAfterMemBar
*

View File

@ -24,7 +24,7 @@
/* @test TestC1ArrayCopyNPE
* @summary test C1 arraycopy intrinsic
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @run main/othervm -XX:TieredStopAtLevel=1 -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive TestC1ArrayCopyNPE
*/

View File

@ -25,7 +25,7 @@
/* @test TestC1VectorizedMismatch
* @summary test C1 vectorized mismatch intrinsic
* @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
*
* @run main/othervm -XX:TieredStopAtLevel=1 -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive TestC1VectorizedMismatch

View File

@ -24,7 +24,7 @@
/*
* @test TestClone
* @summary Test clone barriers work correctly
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xms1g -Xmx1g
* -XX:+UseShenandoahGC
@ -50,7 +50,7 @@
/*
* @test TestClone
* @summary Test clone barriers work correctly
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xms1g -Xmx1g
* -XX:+UseShenandoahGC
@ -81,7 +81,7 @@
/*
* @test TestClone
* @summary Test clone barriers work correctly
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xms1g -Xmx1g
* -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive
@ -107,7 +107,8 @@
/*
* @test TestClone
* @summary Test clone barriers work correctly
* @requires vm.gc.Shenandoah & !vm.graal.enabled & (vm.bits == "64")
* @requires vm.gc.Shenandoah
* @requires vm.bits == "64"
*
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xms1g -Xmx1g
* -XX:-UseCompressedOops
@ -138,7 +139,8 @@
/*
* @test TestClone
* @summary Test clone barriers work correctly
* @requires vm.gc.Shenandoah & !vm.graal.enabled & (vm.bits == "64")
* @requires vm.gc.Shenandoah
* @requires vm.bits == "64"
*
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xms1g -Xmx1g
* -XX:-UseCompressedOops
@ -174,7 +176,8 @@
/*
* @test TestClone
* @summary Test clone barriers work correctly
* @requires vm.gc.Shenandoah & !vm.graal.enabled & (vm.bits == "64")
* @requires vm.gc.Shenandoah
* @requires vm.bits == "64"
*
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xms1g -Xmx1g
* -XX:-UseCompressedOops

View File

@ -24,7 +24,7 @@
/**
* @test TestExpandedWBLostNullCheckDep
* @summary Logic that moves a null check in the expanded barrier may cause a memory access that doesn't depend on the barrier to bypass the null check
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @requires vm.flavor == "server"
* @run main/othervm -XX:-BackgroundCompilation -XX:-UseOnStackReplacement -XX:-TieredCompilation
* -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC

View File

@ -24,7 +24,7 @@
/**
* @test TestMaybeNullUnsafeAccess
* @summary cast before unsafe access moved in dominating null check null path causes crash
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @modules java.base/jdk.internal.misc:+open
*
* @run main/othervm -XX:-UseOnStackReplacement -XX:-BackgroundCompilation -XX:-TieredCompilation

View File

@ -24,7 +24,8 @@
/**
* @test TestNullCheck
* @summary implicit null check on brooks pointer must not cause crash
* @requires vm.gc.Shenandoah & !vm.graal.enabled & (vm.bits == "64")
* @requires vm.gc.Shenandoah
* @requires vm.bits == "64"
* @run main/othervm -XX:-BackgroundCompilation -XX:-UseOnStackReplacement -XX:-TieredCompilation
* -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC
* -Xmx4G -XX:HeapBaseMinAddress=0x800000000 TestNullCheck

View File

@ -29,7 +29,7 @@
/*
* @test TestReferenceCAS
* @summary Shenandoah reference CAS test
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @modules java.base/jdk.internal.misc:+open
*
* @run main/othervm -Diters=20000 -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=aggressive -XX:+UseShenandoahGC TestReferenceCAS
@ -42,7 +42,8 @@
/*
* @test TestReferenceCAS
* @summary Shenandoah reference CAS test
* @requires vm.gc.Shenandoah & !vm.graal.enabled & (vm.bits == "64")
* @requires vm.gc.Shenandoah
* @requires vm.bits == "64"
* @modules java.base/jdk.internal.misc:+open
*
* @run main/othervm -Diters=20000 -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=aggressive -XX:+UseShenandoahGC -XX:-UseCompressedOops TestReferenceCAS

View File

@ -26,7 +26,7 @@
* @bug 8244663
* @summary Shenandoah: C2 assertion fails in Matcher::collect_null_checks
* @requires vm.flavor == "server"
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:-TieredCompilation -XX:-BackgroundCompilation -XX:-UseOnStackReplacement
* -XX:CompileCommand=dontinline,TestShenandoahCmpPAfterCall::not_inlined TestShenandoahCmpPAfterCall

View File

@ -26,7 +26,7 @@
* @bug 8247824
* @summary CTW: C2 (Shenandoah) compilation fails with SEGV in SBC2Support::pin_and_expand
* @requires vm.flavor == "server"
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -XX:-BackgroundCompilation -XX:+UseShenandoahGC -XX:LoopMaxUnroll=0 TestShenandoahLRBInOuterStripMinedLoop
*

View File

@ -24,7 +24,7 @@
/**
* @test TestUnsafeOffheapSwap
* @summary Miscompilation in Unsafe off-heap swap routines
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @modules java.base/jdk.internal.misc:+open
*
* @run main/othervm -XX:-UseOnStackReplacement -XX:-BackgroundCompilation -XX:-TieredCompilation

View File

@ -24,7 +24,7 @@
/**
* @test TestWriteBarrierClearControl
* @summary Clearing control during final graph reshape causes memory barrier to loose dependency on null check
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @requires vm.flavor == "server"
* @run main/othervm -XX:-BackgroundCompilation -XX:-UseOnStackReplacement -XX:-TieredCompilation
* -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC

View File

@ -25,7 +25,7 @@
/* @test TestJNICritical
* @summary test JNI critical arrays support in Shenandoah
* @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
*
* @run main/othervm/native -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:+ShenandoahVerify TestJNICritical

View File

@ -24,7 +24,7 @@
/* @test TestJNIGlobalRefs
* @summary Test JNI Global Refs with Shenandoah
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm/native -Xmx1g -Xlog:gc -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive
@ -34,7 +34,7 @@
/* @test TestJNIGlobalRefs
* @summary Test JNI Global Refs with Shenandoah
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm/native -Xmx1g -Xlog:gc -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive

View File

@ -25,7 +25,7 @@
/* @test TestPinnedGarbage
* @summary Test that garbage in the pinned region does not crash VM
* @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
*
* @run main/othervm/native -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx512m
@ -42,7 +42,7 @@
/* @test TestPinnedGarbage
* @summary Test that garbage in the pinned region does not crash VM
* @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
*
* @run main/othervm/native -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx512m

View File

@ -25,7 +25,7 @@
/**
* @test TestHeapDump
* @summary Tests JVMTI heap dumps
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @compile TestHeapDump.java
* @run main/othervm/native/timeout=300 -agentlib:TestHeapDump -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx128m -XX:ShenandoahGCHeuristics=aggressive TestHeapDump
*
@ -34,7 +34,8 @@
/**
* @test TestHeapDump
* @summary Tests JVMTI heap dumps
* @requires vm.gc.Shenandoah & !vm.graal.enabled & (vm.bits == "64")
* @requires vm.gc.Shenandoah
* @requires vm.bits == "64"
* @compile TestHeapDump.java
* @run main/othervm/native/timeout=300 -agentlib:TestHeapDump -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx128m -XX:ShenandoahGCHeuristics=aggressive -XX:-UseCompressedOops TestHeapDump
*/
@ -42,7 +43,7 @@
/**
* @test TestHeapDump
* @summary Tests JVMTI heap dumps
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @compile TestHeapDump.java
* @run main/othervm/native/timeout=300 -agentlib:TestHeapDump -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx128m -XX:ShenandoahGCHeuristics=aggressive -XX:+UseStringDeduplication TestHeapDump
*/

View File

@ -25,7 +25,7 @@
/*
* @test TestChurnNotifications
* @summary Check that MX notifications are reported for all cycles
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive
@ -41,7 +41,7 @@
/*
* @test TestChurnNotifications
* @summary Check that MX notifications are reported for all cycles
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive
@ -67,7 +67,7 @@
/*
* @test TestChurnNotifications
* @summary Check that MX notifications are reported for all cycles
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu -XX:ShenandoahGCHeuristics=aggressive

View File

@ -25,7 +25,7 @@
/**
* @test TestMemoryMXBeans
* @summary Test JMX memory beans
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @modules java.base/jdk.internal.misc
* java.management
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx1g TestMemoryMXBeans -1 1024

View File

@ -25,7 +25,7 @@
/**
* @test TestMemoryPools
* @summary Test JMX memory pools
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @modules java.base/jdk.internal.misc
* java.management
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx1g -Xms1g TestMemoryPools

View File

@ -25,7 +25,7 @@
/*
* @test TestPauseNotifications
* @summary Check that MX notifications are reported for all cycles
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive
@ -41,7 +41,7 @@
/*
* @test TestPauseNotifications
* @summary Check that MX notifications are reported for all cycles
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive
@ -63,7 +63,7 @@
/*
* @test TestPauseNotifications
* @summary Check that MX notifications are reported for all cycles
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu -XX:ShenandoahGCHeuristics=aggressive

View File

@ -25,7 +25,7 @@
/**
* @test TestAllocLargeObj
* @summary Test allocation of small object to result OOM, but not to crash JVM
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
* @run driver TestAllocLargeObj
*/

View File

@ -25,7 +25,7 @@
/**
* @test TestAllocLargerThanHeap
* @summary Test that allocation of the object larger than heap fails predictably
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
* @run driver TestAllocLargerThanHeap
*/

View File

@ -25,7 +25,7 @@
/**
* @test TestAllocSmallObj
* @summary Test allocation of small object to result OOM, but not to crash JVM
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
* @run driver TestAllocSmallObj
*/

View File

@ -25,7 +25,7 @@
/**
* @test TestClassLoaderLeak
* @summary Test OOME in due to classloader leak
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
* @run driver TestClassLoaderLeak
*/

View File

@ -25,7 +25,7 @@
/**
* @test TestThreadFailure
* @summary Test OOME in separate thread is recoverable
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
* @run driver TestThreadFailure
*/

View File

@ -25,7 +25,7 @@
/*
* @test TestAlwaysPreTouch
* @summary Check that Shenandoah's AlwaysPreTouch does not fire asserts
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:+AlwaysPreTouch -Xmx1g TestAlwaysPreTouch
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:+AlwaysPreTouch -XX:ConcGCThreads=2 -Xmx1g TestAlwaysPreTouch

View File

@ -25,7 +25,7 @@
/*
* @test TestArgumentRanges
* @summary Test that Shenandoah arguments are checked for ranges where applicable
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management

View File

@ -25,7 +25,7 @@
/*
* @test TestClassUnloadingArguments
* @summary Test that loop mining arguments are sane
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
* @run driver TestClassUnloadingArguments
*/

View File

@ -23,7 +23,7 @@
*/
/* @test TestCodeCacheRootStyles
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahCodeRootsStyle=0 TestCodeCacheRootStyles
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions

View File

@ -26,7 +26,7 @@
* @test TestCriticalControlThreadPriority
* @summary Check that ShenandoahCriticalControlThreadPriority works
* @bug 8217343
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
*
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:-ShenandoahCriticalControlThreadPriority -Xmx1g TestCriticalControlThreadPriority
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:+ShenandoahCriticalControlThreadPriority -Xmx1g TestCriticalControlThreadPriority

View File

@ -26,14 +26,14 @@ import java.lang.management.ManagementFactory;
/*
* @test TestEnabled
* @requires vm.gc.Shenandoah & vm.gc == "null" & !vm.graal.enabled
* @requires vm.gc.Shenandoah & vm.gc == "null"
* @run main/othervm -Dexpected=false -Xmx64m TestEnabled
* @run main/othervm -Dexpected=true -Xmx64m -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC TestEnabled
*/
/*
* @test TestEnabledAlready
* @requires vm.gc.Shenandoah & vm.gc == "Shenandoah" & !vm.graal.enabled
* @requires vm.gc.Shenandoah & vm.gc == "Shenandoah"
* @run main/othervm -Dexpected=true -Xmx64m TestEnabled
*/
public class TestEnabled {

View File

@ -25,7 +25,7 @@
/*
* @test TestExplicitGC
* @summary Test that Shenandoah reacts to explicit GC flags appropriately
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management

View File

@ -25,7 +25,7 @@
/*
* @test TestExplicitGCNoConcurrent
* @summary Test that Shenandoah reacts to explicit GC flags appropriately
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management

View File

@ -25,7 +25,7 @@
/*
* @test TestHeuristicsUnlock
* @summary Test that Shenandoah heuristics are unlocked properly
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management

View File

@ -26,7 +26,7 @@
* @test TestHumongousMoves
* @summary Check Shenandoah reacts on setting humongous moves correctly
* @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
*
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g

View File

@ -25,7 +25,7 @@
/*
* @test TestHumongousThresholdArgs
* @summary Test that Shenandoah humongous threshold args are checked
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management

View File

@ -25,7 +25,7 @@
/*
* @test TestLoopMiningArguments
* @summary Test that loop mining arguments are sane
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @requires vm.flavor == "server"
* @library /test/lib
* @run driver TestLoopMiningArguments

View File

@ -25,7 +25,7 @@
/*
* @test TestModeUnlock
* @summary Test that Shenandoah modes are unlocked properly
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.gc.Shenandoah
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management

Some files were not shown because too many files have changed in this diff Show More