< prev index next >

test/hotspot/jtreg/gc/TestSystemGC.java

Print this page
rev 59879 : [mq]: 8249000


  32 
  33 /*
  34  * @test TestSystemGCParallel
  35  * @requires vm.gc.Parallel
  36  * @summary Runs System.gc() with different flags.
  37  * @run main/othervm -XX:+UseParallelGC gc.TestSystemGC
  38  */
  39 
  40 /*
  41  * @test TestSystemGCG1
  42  * @requires vm.gc.G1
  43  * @summary Runs System.gc() with different flags.
  44  * @run main/othervm -XX:+UseG1GC gc.TestSystemGC
  45  * @run main/othervm -XX:+UseG1GC -XX:+ExplicitGCInvokesConcurrent gc.TestSystemGC
  46  * @run main/othervm -XX:+UseLargePages gc.TestSystemGC
  47  * @run main/othervm -XX:+UseLargePages -XX:+UseLargePagesInMetaspace gc.TestSystemGC
  48  */
  49 
  50 /*
  51  * @test TestSystemGCShenandoah
  52  * @requires vm.gc.Shenandoah & !vm.graal.enabled
  53  * @summary Runs System.gc() with different flags.
  54  * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC gc.TestSystemGC
  55  * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:+ExplicitGCInvokesConcurrent gc.TestSystemGC
  56  */
  57 public class TestSystemGC {
  58   public static void main(String args[]) throws Exception {
  59     System.gc();
  60   }
  61 }


  32 
  33 /*
  34  * @test TestSystemGCParallel
  35  * @requires vm.gc.Parallel
  36  * @summary Runs System.gc() with different flags.
  37  * @run main/othervm -XX:+UseParallelGC gc.TestSystemGC
  38  */
  39 
  40 /*
  41  * @test TestSystemGCG1
  42  * @requires vm.gc.G1
  43  * @summary Runs System.gc() with different flags.
  44  * @run main/othervm -XX:+UseG1GC gc.TestSystemGC
  45  * @run main/othervm -XX:+UseG1GC -XX:+ExplicitGCInvokesConcurrent gc.TestSystemGC
  46  * @run main/othervm -XX:+UseLargePages gc.TestSystemGC
  47  * @run main/othervm -XX:+UseLargePages -XX:+UseLargePagesInMetaspace gc.TestSystemGC
  48  */
  49 
  50 /*
  51  * @test TestSystemGCShenandoah
  52  * @requires vm.gc.Shenandoah
  53  * @summary Runs System.gc() with different flags.
  54  * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC gc.TestSystemGC
  55  * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:+ExplicitGCInvokesConcurrent gc.TestSystemGC
  56  */
  57 public class TestSystemGC {
  58   public static void main(String args[]) throws Exception {
  59     System.gc();
  60   }
  61 }
< prev index next >