< prev index next >

test/hotspot/jtreg/runtime/cds/appcds/OldClassWithjsr.java

Print this page
*** 44,11 ***
          String appJar = TestCommon.getTestJar(namePrefix + ".jar");
  
          boolean dynamicMode = CDSTestUtils.DYNAMIC_DUMP;
  
          // create archive with class list
!         OutputAnalyzer output = TestCommon.dump(appJar, appClasses, "-Xlog:class+load,cds=debug,verification=trace");
          TestCommon.checkExecReturn(output, 0,
                                     dynamicMode ? true : false,
                                     "Skipping " + mainClass + ": Old class has been linked");
  
          // run with archive
--- 44,12 ---
          String appJar = TestCommon.getTestJar(namePrefix + ".jar");
  
          boolean dynamicMode = CDSTestUtils.DYNAMIC_DUMP;
  
          // create archive with class list
!         OutputAnalyzer output = TestCommon.dump(appJar, appClasses, "-Xlog:class+load,cds=debug,verification=trace",
+                                                 "-XX:-PreloadSharedClasses");
          TestCommon.checkExecReturn(output, 0,
                                     dynamicMode ? true : false,
                                     "Skipping " + mainClass + ": Old class has been linked");
  
          // run with archive
< prev index next >