test/hotspot/jtreg/runtime/appcds/sharedStrings/SharedStringsBasicPlus.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File open Sdiff test/hotspot/jtreg/runtime/appcds/sharedStrings

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

Print this page




  25 /*
  26  * @test
  27  * @summary Basic plus test for shared strings
  28  * @requires vm.cds.archived.java.heap
  29  * @library /test/hotspot/jtreg/runtime/appcds /test/lib
  30  * @modules java.base/jdk.internal.misc
  31  * @modules java.management
  32  *          jdk.jartool/sun.tools.jar
  33  * @build HelloStringPlus sun.hotspot.WhiteBox
  34  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
  35  * @run main SharedStringsBasicPlus
  36  * @run main/othervm -XX:+UseStringDeduplication SharedStringsBasicPlus
  37  * @run main/othervm -XX:-CompactStrings SharedStringsBasicPlus
  38  */
  39 
  40 public class SharedStringsBasicPlus {
  41     public static void main(String[] args) throws Exception {
  42         SharedStringsUtils.buildJarAndWhiteBox("HelloStringPlus");
  43 
  44         SharedStringsUtils.dumpWithWhiteBox( TestCommon.list("HelloStringPlus"),
  45             "SharedStringsBasic.txt");
  46 
  47         SharedStringsUtils.runWithArchiveAndWhiteBox("HelloStringPlus");
  48     }
  49 }


  25 /*
  26  * @test
  27  * @summary Basic plus test for shared strings
  28  * @requires vm.cds.archived.java.heap
  29  * @library /test/hotspot/jtreg/runtime/appcds /test/lib
  30  * @modules java.base/jdk.internal.misc
  31  * @modules java.management
  32  *          jdk.jartool/sun.tools.jar
  33  * @build HelloStringPlus sun.hotspot.WhiteBox
  34  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
  35  * @run main SharedStringsBasicPlus
  36  * @run main/othervm -XX:+UseStringDeduplication SharedStringsBasicPlus
  37  * @run main/othervm -XX:-CompactStrings SharedStringsBasicPlus
  38  */
  39 
  40 public class SharedStringsBasicPlus {
  41     public static void main(String[] args) throws Exception {
  42         SharedStringsUtils.buildJarAndWhiteBox("HelloStringPlus");
  43 
  44         SharedStringsUtils.dumpWithWhiteBox( TestCommon.list("HelloStringPlus"),
  45             "SharedStringsBasic.txt", "-Xlog:cds,cds+hashtables");
  46 
  47         SharedStringsUtils.runWithArchiveAndWhiteBox("HelloStringPlus");
  48     }
  49 }
test/hotspot/jtreg/runtime/appcds/sharedStrings/SharedStringsBasicPlus.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File