< prev index next >

test/gc/shenandoah/options/TestClassUnloadingArguments.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) 2018 Red Hat, Inc. and/or its affiliates.
+ * Copyright (c) 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 TestClassUnloadingArguments
  * @summary Test that loop mining arguments are sane
  * @key gc
  * @library /testlibrary
+ *
  * @run driver TestClassUnloadingArguments
  */
 
 import java.util.*;
 

@@ -79,24 +80,28 @@
     }
 
     public static void testShenandoah() throws Exception {
         testWith("Shenandoah GC should have class unloading enabled",
             true, false,
+                "-XX:+UnlockExperimentalVMOptions",
             "-XX:+UseShenandoahGC");
 
         testWith("Shenandoah GC should disable everything",
             false, false,
+                "-XX:+UnlockExperimentalVMOptions",
             "-XX:+UseShenandoahGC",
             "-XX:-ClassUnloading");
 
         testWith("Shenandoah GC should enable conc unload",
             true, true,
+                "-XX:+UnlockExperimentalVMOptions",
             "-XX:+UseShenandoahGC",
             "-XX:+ClassUnloadingWithConcurrentMark");
 
         testWith("Shenandoah GC should not let conc unload to be enabled separately",
             false, false,
+                "-XX:+UnlockExperimentalVMOptions",
             "-XX:+UseShenandoahGC",
             "-XX:-ClassUnloading",
             "-XX:+ClassUnloadingWithConcurrentMark");
     }
 
< prev index next >