< prev index next >

test/hotspot/jtreg/runtime/appcds/sharedStrings/LargePages.java

Print this page

*** 25,45 **** /* * @test * @summary Basic shared string test with large pages * @requires vm.cds.archived.java.heap * @library /test/lib /test/hotspot/jtreg/runtime/appcds ! * @modules java.base/jdk.internal.misc ! * @modules java.management ! * jdk.jartool/sun.tools.jar * @build HelloString * @run driver LargePages ! * @run main/othervm -XX:+UseStringDeduplication LargePages ! * @run main/othervm -XX:-CompactStrings LargePages */ public class LargePages { static final String CDS_LOGGING = "-Xlog:cds,cds+hashtables"; public static void main(String[] args) throws Exception { SharedStringsUtils.buildJar("HelloString"); SharedStringsUtils.dump(TestCommon.list("HelloString"), "SharedStringsBasic.txt", "-XX:+UseLargePages", CDS_LOGGING); SharedStringsUtils.runWithArchive("HelloString", "-XX:+UseLargePages"); --- 25,44 ---- /* * @test * @summary Basic shared string test with large pages * @requires vm.cds.archived.java.heap * @library /test/lib /test/hotspot/jtreg/runtime/appcds ! * @modules jdk.jartool/sun.tools.jar * @build HelloString * @run driver LargePages ! * @run driver LargePages -XX:+UseStringDeduplication ! * @run driver LargePages -XX:-CompactStrings */ public class LargePages { static final String CDS_LOGGING = "-Xlog:cds,cds+hashtables"; public static void main(String[] args) throws Exception { + SharedStringsUtils.setVMOptionsPrefix(args); SharedStringsUtils.buildJar("HelloString"); SharedStringsUtils.dump(TestCommon.list("HelloString"), "SharedStringsBasic.txt", "-XX:+UseLargePages", CDS_LOGGING); SharedStringsUtils.runWithArchive("HelloString", "-XX:+UseLargePages");
< prev index next >