< prev index next >

test/hotspot/jtreg/gc/shenandoah/options/TestClassUnloadingArguments.java

Print this page




  64     public static void testDefaultGC() throws Exception {
  65         testWith("Default GC should have class unloading enabled",
  66                 true, true);
  67 
  68         testWith("Default GC should disable everything",
  69                 false, false,
  70                 "-XX:-ClassUnloading");
  71 
  72         testWith("Default GC should disable conc unload",
  73                 true, false,
  74                 "-XX:-ClassUnloadingWithConcurrentMark");
  75 
  76         testWith("Default GC should not let conc unload to be enabled separately",
  77                 false, false,
  78                 "-XX:-ClassUnloading",
  79                 "-XX:+ClassUnloadingWithConcurrentMark");
  80     }
  81 
  82     public static void testShenandoah() throws Exception {
  83         testWith("Shenandoah GC should have class unloading enabled",
  84                 true, false,
  85                 "-XX:+UnlockExperimentalVMOptions",
  86                 "-XX:+UseShenandoahGC");
  87 
  88         testWith("Shenandoah GC should disable everything",
  89                 false, false,
  90                 "-XX:+UnlockExperimentalVMOptions",
  91                 "-XX:+UseShenandoahGC",
  92                 "-XX:-ClassUnloading");
  93 
  94         testWith("Shenandoah GC should enable conc unload",
  95                 true, true,
  96                 "-XX:+UnlockExperimentalVMOptions",
  97                 "-XX:+UseShenandoahGC",
  98                 "-XX:+ClassUnloadingWithConcurrentMark");
  99 
 100         testWith("Shenandoah GC should not let conc unload to be enabled separately",
 101                 false, false,
 102                 "-XX:+UnlockExperimentalVMOptions",
 103                 "-XX:+UseShenandoahGC",
 104                 "-XX:-ClassUnloading",


  64     public static void testDefaultGC() throws Exception {
  65         testWith("Default GC should have class unloading enabled",
  66                 true, true);
  67 
  68         testWith("Default GC should disable everything",
  69                 false, false,
  70                 "-XX:-ClassUnloading");
  71 
  72         testWith("Default GC should disable conc unload",
  73                 true, false,
  74                 "-XX:-ClassUnloadingWithConcurrentMark");
  75 
  76         testWith("Default GC should not let conc unload to be enabled separately",
  77                 false, false,
  78                 "-XX:-ClassUnloading",
  79                 "-XX:+ClassUnloadingWithConcurrentMark");
  80     }
  81 
  82     public static void testShenandoah() throws Exception {
  83         testWith("Shenandoah GC should have class unloading enabled",
  84                 true, true,
  85                 "-XX:+UnlockExperimentalVMOptions",
  86                 "-XX:+UseShenandoahGC");
  87 
  88         testWith("Shenandoah GC should disable everything",
  89                 false, false,
  90                 "-XX:+UnlockExperimentalVMOptions",
  91                 "-XX:+UseShenandoahGC",
  92                 "-XX:-ClassUnloading");
  93 
  94         testWith("Shenandoah GC should enable conc unload",
  95                 true, true,
  96                 "-XX:+UnlockExperimentalVMOptions",
  97                 "-XX:+UseShenandoahGC",
  98                 "-XX:+ClassUnloadingWithConcurrentMark");
  99 
 100         testWith("Shenandoah GC should not let conc unload to be enabled separately",
 101                 false, false,
 102                 "-XX:+UnlockExperimentalVMOptions",
 103                 "-XX:+UseShenandoahGC",
 104                 "-XX:-ClassUnloading",
< prev index next >