< prev index next >
test/hotspot/jtreg/runtime/CompressedOops/UseCompressedOops.java
Print this page
rev 53507 : Fix shared tests to run without Shenandoah
*** 35,44 ****
--- 35,45 ----
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,70 ****
--- 60,73 ----
testCompressedOopsModes(args, "-XX:+UseConcMarkSweepGC");
}
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 {
ArrayList<String> args = new ArrayList<>();
args.addAll(flags1);
Collections.addAll(args, flags2);
< prev index next >