< prev index next >

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

Print this page
*** 108,10 ***
--- 108,11 ---
          use_whitebox_jar = "-Xbootclasspath/a:" + wbJar;
  
          OutputAnalyzer output = TestCommon.createArchive(
                                      appJar,
                                      TestCommon.list("JvmtiApp", "ExtraClass", MAIN_CLASS),
+                                     "-XX:-PreloadSharedClasses",
                                      use_whitebox_jar,
                                      modulePath);
          TestCommon.checkDump(output);
  
          System.out.println("Test case 1: not adding module path - Hello.class should not be found");

*** 138,10 ***
--- 139,11 ---
  
          System.out.println("Test case 6: add to app using AppCDS, but add to boot using JVMTI - should find Hello.class in boot loader");
          output = TestCommon.createArchive(
                       appJar, TestCommon.list("JvmtiApp", "ExtraClass"),
                       use_whitebox_jar,
+                      "-XX:-PreloadSharedClasses",
                       modulePath);
          TestCommon.checkDump(output);
          run(twoAppJars, modulePath,
              "JvmtiApp", "bootonly", addappJar, MAIN_CLASS);
  
< prev index next >