< prev index next >

test/hotspot/jtreg/runtime/cds/appcds/methodHandles/MethodHandlesPermuteArgumentsTest.java

Print this page

 81 
 82         // dump class list
 83         CDSTestUtils.dumpClassList(classList, "-cp", jars, verifyOpt, mainClass,
 84                                    testPackageName + "." + testClassName);
 85 
 86         // create archive with the class list
 87         CDSOptions opts = (new CDSOptions())
 88             .addPrefix("-XX:ExtraSharedClassListFile=" + classList,
 89                        "-cp", jars,
 90                        "-Xlog:class+load,cds")
 91             .setArchiveName(archiveName);
 92         CDSTestUtils.createArchiveAndCheck(opts);
 93 
 94         // run with archive
 95         CDSOptions runOpts = (new CDSOptions())
 96             .addPrefix("-cp", jars, "-Xlog:class+load,cds=debug", verifyOpt)
 97             .setArchiveName(archiveName)
 98             .setUseVersion(false)
 99             .addSuffix(mainClass, testPackageName + "." + testClassName);
100         OutputAnalyzer output = CDSTestUtils.runWithArchive(runOpts);
101         output.shouldMatch(".class.load. test.java.lang.invoke.MethodHandlesPermuteArgumentsTest[$][$]Lambda.*/0x.*source:.*shared.*objects.*file")
102               .shouldHaveExitValue(0);

103     }
104 }

 81 
 82         // dump class list
 83         CDSTestUtils.dumpClassList(classList, "-cp", jars, verifyOpt, mainClass,
 84                                    testPackageName + "." + testClassName);
 85 
 86         // create archive with the class list
 87         CDSOptions opts = (new CDSOptions())
 88             .addPrefix("-XX:ExtraSharedClassListFile=" + classList,
 89                        "-cp", jars,
 90                        "-Xlog:class+load,cds")
 91             .setArchiveName(archiveName);
 92         CDSTestUtils.createArchiveAndCheck(opts);
 93 
 94         // run with archive
 95         CDSOptions runOpts = (new CDSOptions())
 96             .addPrefix("-cp", jars, "-Xlog:class+load,cds=debug", verifyOpt)
 97             .setArchiveName(archiveName)
 98             .setUseVersion(false)
 99             .addSuffix(mainClass, testPackageName + "." + testClassName);
100         OutputAnalyzer output = CDSTestUtils.runWithArchive(runOpts);
101         // FIXME:leyden-premain : we disabled archived Lambda proxy classes due to JDK-8307468
102         // output.shouldMatch(".class.load. test.java.lang.invoke.MethodHandlesPermuteArgumentsTest[$][$]Lambda.*/0x.*source:.*shared.*objects.*file")
103         //      .shouldHaveExitValue(0);
104     }
105 }
< prev index next >