< prev index next >

test/gc/shenandoah/TestPeriodicGC.java

Print this page
rev 10697 : [backport] Prepare tests for making UseShenandoahGC experimental
rev 10772 : [backport] Update copyrights
rev 10782 : [backport] Shenandoah should @require Shenandoah, @key gc, and have good @test
rev 10786 : [backport] Reformat Shenandoah tests

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2017 Red Hat, Inc. and/or its affiliates.
+ * Copyright (c) 2017, 2018, 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
  * published by the Free Software Foundation.
  *

@@ -24,10 +24,11 @@
 /*
  * @test TestPeriodicGC
  * @summary Test that periodic GC is working
  * @key gc
  * @library /testlibrary
+ *
  * @run driver TestPeriodicGC
  */
 
 import java.util.*;
 

@@ -70,35 +71,35 @@
 
         for (String h : enabled) {
             testWith("Short period with " + h,
                 true,
                 "-verbose:gc",
-                "-XX:+UseShenandoahGC",
                 "-XX:+UnlockDiagnosticVMOptions",
                 "-XX:+UnlockExperimentalVMOptions",
+                    "-XX:+UseShenandoahGC",
                 "-XX:ShenandoahGCHeuristics=" + h,
                 "-XX:ShenandoahGuaranteedGCInterval=1000"
             );
 
             testWith("Long period with " + h,
                 false,
                 "-verbose:gc",
-                "-XX:+UseShenandoahGC",
                 "-XX:+UnlockDiagnosticVMOptions",
                 "-XX:+UnlockExperimentalVMOptions",
+                    "-XX:+UseShenandoahGC",
                 "-XX:ShenandoahGCHeuristics=" + h,
                 "-XX:ShenandoahGuaranteedGCInterval=100000" // deliberately too long
             );
         }
 
         for (String h : disabled) {
             testWith("Short period with " + h,
                 false,
                 "-verbose:gc",
-                "-XX:+UseShenandoahGC",
                 "-XX:+UnlockDiagnosticVMOptions",
                 "-XX:+UnlockExperimentalVMOptions",
+                    "-XX:+UseShenandoahGC",
                 "-XX:ShenandoahGCHeuristics=" + h,
                 "-XX:ShenandoahGuaranteedGCInterval=1000"
             );
         }
     }
< prev index next >