< prev index next >

test/hotspot/jtreg/runtime/cds/appcds/loaderConstraints/DynamicLoaderConstraintsTest.java

Print this page
@@ -165,11 +165,11 @@
              if (useCustomLoader) {
                  if (useZGC) {
                      String zGenerational = "-XX:" + (useZGenerational ? "+" : "-") + "ZGenerational";
                      // Add options to force eager class unloading.
                      cmdLine = TestCommon.concat(cmdLine, "-cp", loaderJar,
-                                                 "-XX:+UseZGC", zGenerational, "-XX:ZCollectionInterval=0.01",
+                                                 "-XX:+UseZGC", zGenerational, "-XX:ZCollectionInterval=0.01", "-XX:+UnlockExperimentalVMOptions", "-XX:-UseCompactObjectHeaders",
                                                  loaderMainClass, appJar);
                      setBaseArchiveOptions("-XX:+UseZGC", "-Xlog:cds");
                  } else {
                      cmdLine = TestCommon.concat(cmdLine, "-cp", loaderJar,
                                                  loaderMainClass, appJar);
< prev index next >