8157954: [TESTBUG] G1 tests fail with defined MaxGCPauseMillis
authormchernov
Tue, 31 May 2016 20:31:08 +0300
changeset 38930 469cfb0d7eb3
parent 38929 1ee62412a66f
child 38932 3a34c2a9b7bc
child 38933 fbf9321c9b2b
8157954: [TESTBUG] G1 tests fail with defined MaxGCPauseMillis Reviewed-by: jmasa, dfazunen, tschatzl
hotspot/test/gc/g1/ihop/TestIHOPErgo.java
hotspot/test/gc/g1/mixedgc/TestLogging.java
hotspot/test/gc/stress/TestMultiThreadStressRSet.java
hotspot/test/gc/stress/TestStressRSetCoarsening.java
--- 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