< prev index next >

test/hotspot/jtreg/runtime/cds/appcds/jigsaw/modulepath/OptimizeModuleHandlingTest.java

Print this page
@@ -119,11 +119,12 @@
          // previous step
          OutputAnalyzer output = TestCommon.createArchive(
                                          null, appClasses,
                                          "--module-path",
                                          libsDir.toString(),
-                                         "-m", MAIN_MODULE);
+                                         "-m", MAIN_MODULE,
+                                         "-XX:-PreloadSharedClasses");
          TestCommon.checkDump(output);
  
          // following 1 - 4 test with CDS off
          tty("1. run with CDS off");
          TestCommon.execOff( "-p", libsDir.toString(),

@@ -242,11 +243,11 @@
          String appClasses[] = {MAIN_CLASS, TEST_CLASS};
          // create an archive with the classes in the modules built in the
          // previous step
          OutputAnalyzer output = TestCommon.createArchive(
                                      testJar.toString() + PATH_SEPARATOR + mainJar.toString(),
-                                     appClasses);
+                                     appClasses, "-XX:-PreloadSharedClasses");
          TestCommon.checkDump(output);
  
          // tests 1 - 4 test with CDS off are same as with module archive.
          tty("tests 1 - 4 test with CDS off are same as with module archive, skipped");
  
< prev index next >