test/hotspot/jtreg/runtime/CompressedOops/UseCompressedOops.java
changeset 52925 9c18c9d839d3
parent 50455 2b73cce96dce
child 53530 f5671b2e74df
--- a/test/hotspot/jtreg/runtime/CompressedOops/UseCompressedOops.java	Mon Dec 10 17:34:49 2018 +0300
+++ b/test/hotspot/jtreg/runtime/CompressedOops/UseCompressedOops.java	Mon Dec 10 15:47:44 2018 +0100
@@ -37,6 +37,7 @@
 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;
 
@@ -61,6 +62,9 @@
         testCompressedOopsModes(args, "-XX:+UseSerialGC");
         testCompressedOopsModes(args, "-XX:+UseParallelGC");
         testCompressedOopsModes(args, "-XX:+UseParallelOldGC");
+        if (GC.Shenandoah.isSupported()) {
+            testCompressedOopsModes(args, "-XX:+UseShenandoahGC");
+        }
     }
 
     public static void testCompressedOopsModes(ArrayList<String> flags1, String... flags2) throws Exception {