< prev index next >

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

Print this page
*** 57,11 ***
  
              // create archive with the class list
              CDSOptions opts = (new CDSOptions())
                  .addPrefix("-XX:ExtraSharedClassListFile=" + classList,
                             "-cp", appJar,
!                            "-Xlog:class+load,cds")
                  .setArchiveName(archiveName);
              OutputAnalyzer output = CDSTestUtils.createArchiveAndCheck(opts);
              TestCommon.checkExecReturn(output, 0, true,
                                         "Skipping OldProvider: Old class has been linked");
              output.shouldMatch("Skipping.LambdaContainsOldInfApp[$][$]Lambda.*0x.*:.*Old.class.has.been.linked");
--- 57,12 ---
  
              // create archive with the class list
              CDSOptions opts = (new CDSOptions())
                  .addPrefix("-XX:ExtraSharedClassListFile=" + classList,
                             "-cp", appJar,
!                            "-Xlog:class+load,cds",
+                            "-XX:-PreloadSharedClasses")
                  .setArchiveName(archiveName);
              OutputAnalyzer output = CDSTestUtils.createArchiveAndCheck(opts);
              TestCommon.checkExecReturn(output, 0, true,
                                         "Skipping OldProvider: Old class has been linked");
              output.shouldMatch("Skipping.LambdaContainsOldInfApp[$][$]Lambda.*0x.*:.*Old.class.has.been.linked");
< prev index next >