< prev index next >

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

Print this page
rev 60538 : imported patch jep387-test.patch


  29  * @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
  30  * @build HelloString
  31  * @run driver LargePages
  32  */
  33 public class LargePages {
  34     static final String CDS_LOGGING = "-Xlog:cds,cds+hashtables";
  35 
  36     public static void main(String[] args) throws Exception {
  37         SharedStringsUtils.run(args, LargePages::test);
  38     }
  39 
  40     public static void test(String[] args) throws Exception {
  41         SharedStringsUtils.buildJar("HelloString");
  42 
  43         SharedStringsUtils.dump(TestCommon.list("HelloString"),
  44             "SharedStringsBasic.txt", "-XX:+UseLargePages", CDS_LOGGING);
  45         SharedStringsUtils.runWithArchive("HelloString", "-XX:+UseLargePages");
  46 
  47         SharedStringsUtils.dump(TestCommon.list("HelloString"),
  48             "SharedStringsBasic.txt", CDS_LOGGING,
  49             "-XX:+UseLargePages", "-XX:+UseLargePagesInMetaspace");
  50         SharedStringsUtils.runWithArchive("HelloString",
  51             "-XX:+UseLargePages", "-XX:+UseLargePagesInMetaspace");
  52     }
  53 }


  29  * @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
  30  * @build HelloString
  31  * @run driver LargePages
  32  */
  33 public class LargePages {
  34     static final String CDS_LOGGING = "-Xlog:cds,cds+hashtables";
  35 
  36     public static void main(String[] args) throws Exception {
  37         SharedStringsUtils.run(args, LargePages::test);
  38     }
  39 
  40     public static void test(String[] args) throws Exception {
  41         SharedStringsUtils.buildJar("HelloString");
  42 
  43         SharedStringsUtils.dump(TestCommon.list("HelloString"),
  44             "SharedStringsBasic.txt", "-XX:+UseLargePages", CDS_LOGGING);
  45         SharedStringsUtils.runWithArchive("HelloString", "-XX:+UseLargePages");
  46 
  47         SharedStringsUtils.dump(TestCommon.list("HelloString"),
  48             "SharedStringsBasic.txt", CDS_LOGGING,
  49             "-XX:+UseLargePages");
  50         SharedStringsUtils.runWithArchive("HelloString",
  51             "-XX:+UseLargePages");
  52     }
  53 }
< prev index next >