28 * @summary Runs System.gc() with different flags. 29 * @run main/othervm TestSystemGC 30 * @run main/othervm -XX:+UseSerialGC TestSystemGC 31 * @run main/othervm -XX:+UseParallelGC TestSystemGC 32 * @run main/othervm -XX:+UseParallelGC -XX:-UseParallelOldGC TestSystemGC 33 * @run main/othervm -XX:+UseG1GC TestSystemGC 34 * @run main/othervm -XX:+UseG1GC -XX:+ExplicitGCInvokesConcurrent TestSystemGC 35 * @run main/othervm -XX:+UseLargePages TestSystemGC 36 * @run main/othervm -XX:+UseLargePages -XX:+UseLargePagesInMetaspace TestSystemGC 37 */ 38 39 /* 40 * @test TestSystemGCCMS 41 * @key gc 42 * @comment Graal does not support CMS 43 * @requires vm.gc=="null" & !vm.graal.enabled 44 * @run main/othervm -XX:+UseConcMarkSweepGC TestSystemGC 45 * @run main/othervm -XX:+UseConcMarkSweepGC -XX:+ExplicitGCInvokesConcurrent TestSystemGC 46 */ 47 48 public class TestSystemGC { 49 public static void main(String args[]) throws Exception { 50 System.gc(); 51 } 52 } | 28 * @summary Runs System.gc() with different flags. 29 * @run main/othervm TestSystemGC 30 * @run main/othervm -XX:+UseSerialGC TestSystemGC 31 * @run main/othervm -XX:+UseParallelGC TestSystemGC 32 * @run main/othervm -XX:+UseParallelGC -XX:-UseParallelOldGC TestSystemGC 33 * @run main/othervm -XX:+UseG1GC TestSystemGC 34 * @run main/othervm -XX:+UseG1GC -XX:+ExplicitGCInvokesConcurrent TestSystemGC 35 * @run main/othervm -XX:+UseLargePages TestSystemGC 36 * @run main/othervm -XX:+UseLargePages -XX:+UseLargePagesInMetaspace TestSystemGC 37 */ 38 39 /* 40 * @test TestSystemGCCMS 41 * @key gc 42 * @comment Graal does not support CMS 43 * @requires vm.gc=="null" & !vm.graal.enabled 44 * @run main/othervm -XX:+UseConcMarkSweepGC TestSystemGC 45 * @run main/othervm -XX:+UseConcMarkSweepGC -XX:+ExplicitGCInvokesConcurrent TestSystemGC 46 */ 47 48 /* 49 * @test TestSystemGCShenandoah 50 * @key gc 51 * @requires vm.gc.Shenandoah & !vm.graal.enabled 52 * @summary Runs System.gc() with different flags. 53 * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC TestSystemGC 54 * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:+ExplicitGCInvokesConcurrent TestSystemGC 55 */ 56 public class TestSystemGC { 57 public static void main(String args[]) throws Exception { 58 System.gc(); 59 } 60 } |