< prev index next >

test/hotspot/jtreg/gc/TestSystemGC.java

Print this page
rev 60538 : imported patch jep387-test.patch


  27  * @test TestSystemGCSerial
  28  * @requires vm.gc.Serial
  29  * @summary Runs System.gc() with different flags.
  30  * @run main/othervm -XX:+UseSerialGC gc.TestSystemGC
  31  */
  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 }


  27  * @test TestSystemGCSerial
  28  * @requires vm.gc.Serial
  29  * @summary Runs System.gc() with different flags.
  30  * @run main/othervm -XX:+UseSerialGC gc.TestSystemGC
  31  */
  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   */
  48 
  49 /*
  50  * @test TestSystemGCShenandoah
  51  * @requires vm.gc.Shenandoah
  52  * @summary Runs System.gc() with different flags.
  53  * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC gc.TestSystemGC
  54  * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:+ExplicitGCInvokesConcurrent gc.TestSystemGC
  55  */
  56 public class TestSystemGC {
  57   public static void main(String args[]) throws Exception {
  58     System.gc();
  59   }
  60 }
< prev index next >