8220812: gc/shenandoah/options/TestLoopMiningArguments.java fails if default GC is serial/parallel/cms
authoraoqi
Tue, 19 Mar 2019 17:03:18 +0800
changeset 54184 5f4dedb4dcf5
parent 54183 7418b266e1c7
child 54185 8717d7424861
child 57271 1735d39dbff9
8220812: gc/shenandoah/options/TestLoopMiningArguments.java fails if default GC is serial/parallel/cms Reviewed-by: shade Contributed-by: Ao Qi <aoqi@loongson.cn>
test/hotspot/jtreg/gc/shenandoah/options/TestLoopMiningArguments.java
--- a/test/hotspot/jtreg/gc/shenandoah/options/TestLoopMiningArguments.java	Tue Mar 19 10:36:24 2019 +0800
+++ b/test/hotspot/jtreg/gc/shenandoah/options/TestLoopMiningArguments.java	Tue Mar 19 17:03:18 2019 +0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2017, 2018, Red Hat, Inc. All rights reserved.
+ * Copyright (c) 2017, 2019, Red Hat, Inc. All rights reserved.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
@@ -53,50 +53,6 @@
     }
 
     public static void main(String[] args) throws Exception {
-        testDefaultGC();
-        testShenandoah();
-    }
-
-    public static void testDefaultGC() throws Exception {
-        testWith("Default GC should have CLS enabled, LSM = 1000",
-                true, 1000);
-
-        testWith("Default GC with +CLS should set LSM = 1",
-                true, 1,
-                "-XX:+UseCountedLoopSafepoints"
-        );
-
-        testWith("Default GC with +CLS should not override LSM>1",
-                true, 10,
-                "-XX:LoopStripMiningIter=10",
-                "-XX:+UseCountedLoopSafepoints"
-        );
-
-        testWith("Default GC with +CLS should not override LSM=1",
-                true, 1,
-                "-XX:LoopStripMiningIter=1",
-                "-XX:+UseCountedLoopSafepoints"
-        );
-
-        testWith("Default GC with +CLS should override LSM=0 to 1",
-                true, 1,
-                "-XX:LoopStripMiningIter=0",
-                "-XX:+UseCountedLoopSafepoints"
-        );
-
-        testWith("Default GC with -CLS should set LSM = 0",
-                false, 0,
-                "-XX:-UseCountedLoopSafepoints"
-        );
-
-        testWith("Default GC with -CLS should override LSM to 0",
-                false, 0,
-                "-XX:LoopStripMiningIter=10",
-                "-XX:-UseCountedLoopSafepoints"
-        );
-    }
-
-    public static void testShenandoah() throws Exception {
         testWith("Shenandoah should have CLS and LSM enabled",
                 true, 1000,
                 "-XX:+UnlockExperimentalVMOptions",