< prev index next >

test/hotspot/jtreg/runtime/appcds/sharedStrings/IncompatibleOptions.java

Print this page

        

*** 37,46 **** --- 37,47 ---- * @build HelloString * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:. IncompatibleOptions */ import jdk.test.lib.Asserts; + import jdk.test.lib.Platform; import jdk.test.lib.process.OutputAnalyzer; import sun.hotspot.code.Compiler; public class IncompatibleOptions {
*** 60,69 **** --- 61,73 ---- public static void main(String[] args) throws Exception { appJar = JarBuilder.build("IncompatibleOptions", "HelloString"); // Uncompressed OOPs testDump(1, "-XX:+UseG1GC", "-XX:-UseCompressedOops", COOPS_DUMP_WARNING, true); + if (Platform.isLinux() && Platform.isX64()) { + testDump(1, "-XX:+UnlockExperimentalVMOptions", "-XX:+UseZGC", COOPS_DUMP_WARNING, true); + } // incompatible GCs testDump(2, "-XX:+UseParallelGC", "", GC_WARNING, false); testDump(3, "-XX:+UseSerialGC", "", GC_WARNING, false); if (!Compiler.isGraalEnabled()) { // Graal does not support CMS
< prev index next >