< prev index next >

test/hotspot/jtreg/runtime/CompressedOops/UseCompressedOops.java

Print this page

        

@@ -35,10 +35,11 @@
 import java.util.ArrayList;
 import java.util.Collections;
 import jdk.test.lib.Platform;
 import jdk.test.lib.process.ProcessTools;
 import jdk.test.lib.process.OutputAnalyzer;
+import sun.hotspot.gc.GC;
 
 import sun.hotspot.code.Compiler;
 
 public class UseCompressedOops {
 

@@ -59,10 +60,13 @@
             testCompressedOopsModes(args, "-XX:+UseConcMarkSweepGC");
         }
         testCompressedOopsModes(args, "-XX:+UseSerialGC");
         testCompressedOopsModes(args, "-XX:+UseParallelGC");
         testCompressedOopsModes(args, "-XX:+UseParallelOldGC");
+        if (GC.Shenandoah.isSupported()) {
+            testCompressedOopsModes(args, "-XX:+UnlockExperimentalVMOptions", "-XX:+UseShenandoahGC");
+        }
     }
 
     public static void testCompressedOopsModes(ArrayList<String> flags1, String... flags2) throws Exception {
         ArrayList<String> args = new ArrayList<>();
         args.addAll(flags1);
< prev index next >