8157954: [TESTBUG] G1 tests fail with defined MaxGCPauseMillis
Reviewed-by: jmasa, dfazunen, tschatzl
--- a/hotspot/test/gc/g1/ihop/TestIHOPErgo.java Thu Jun 02 09:44:41 2016 +0200
+++ b/hotspot/test/gc/g1/ihop/TestIHOPErgo.java Tue May 31 20:31:08 2016 +0300
@@ -28,6 +28,7 @@
* @requires vm.gc=="G1" | vm.gc=="null"
* @requires vm.opt.FlightRecorder != true
* @requires vm.opt.ExplicitGCInvokesConcurrent != true
+ * @requires vm.opt.MaxGCPauseMillis == "null"
* @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc
* @modules java.management
--- a/hotspot/test/gc/g1/mixedgc/TestLogging.java Thu Jun 02 09:44:41 2016 +0200
+++ b/hotspot/test/gc/g1/mixedgc/TestLogging.java Tue May 31 20:31:08 2016 +0300
@@ -25,6 +25,7 @@
* @test TestLogging
* @summary Check that a mixed GC is reflected in the gc logs
* @requires vm.gc=="G1" | vm.gc=="null"
+ * @requires vm.opt.MaxGCPauseMillis == "null"
* @library /testlibrary /test/lib
* @modules java.base/jdk.internal.misc
* @modules java.management
--- a/hotspot/test/gc/stress/TestMultiThreadStressRSet.java Thu Jun 02 09:44:41 2016 +0200
+++ b/hotspot/test/gc/stress/TestMultiThreadStressRSet.java Tue May 31 20:31:08 2016 +0300
@@ -33,6 +33,7 @@
* @key stress
* @requires vm.gc=="G1" | vm.gc=="null"
* @requires os.maxMemory > 2G
+ * @requires vm.opt.MaxGCPauseMillis == "null"
*
* @summary Stress G1 Remembered Set using multiple threads
* @modules java.base/jdk.internal.misc
--- a/hotspot/test/gc/stress/TestStressRSetCoarsening.java Thu Jun 02 09:44:41 2016 +0200
+++ b/hotspot/test/gc/stress/TestStressRSetCoarsening.java Tue May 31 20:31:08 2016 +0300
@@ -30,6 +30,7 @@
* @bug 8146984 8147087
* @requires vm.gc=="G1" | vm.gc=="null"
* @requires os.maxMemory > 3G
+ * @requires vm.opt.MaxGCPauseMillis == "null"
*
* @summary Stress G1 Remembered Set by creating a lot of cross region links
* @modules java.base/jdk.internal.misc