< prev index next >

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

Print this page

*** 25,49 **** /* * @test * @summary White box test for shared strings * @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 sun.hotspot.WhiteBox SharedStringsWb * @run driver ClassFileInstaller sun.hotspot.WhiteBox * @run driver SharedStringsWbTest ! * @run main/othervm -XX:+UseStringDeduplication SharedStringsWbTest ! * @run main/othervm -XX:-CompactStrings SharedStringsWbTest */ import java.io.*; import sun.hotspot.WhiteBox; public class SharedStringsWbTest { public static void main(String[] args) throws Exception { SharedStringsUtils.buildJarAndWhiteBox("SharedStringsWb"); SharedStringsUtils.dumpWithWhiteBox(TestCommon.list("SharedStringsWb"), "SharedStringsBasic.txt", "-Xlog:cds,cds+hashtables"); --- 25,48 ---- /* * @test * @summary White box test for shared strings * @requires vm.cds.archived.java.heap * @library /test/lib /test/hotspot/jtreg/runtime/appcds ! * @modules jdk.jartool/sun.tools.jar * @build sun.hotspot.WhiteBox SharedStringsWb * @run driver ClassFileInstaller sun.hotspot.WhiteBox * @run driver SharedStringsWbTest ! * @run driver SharedStringsWbTest -XX:+UseStringDeduplication ! * @run driver SharedStringsWbTest -XX:-CompactStrings */ import java.io.*; import sun.hotspot.WhiteBox; public class SharedStringsWbTest { public static void main(String[] args) throws Exception { + SharedStringsUtils.setVMOptionsPrefix(args); SharedStringsUtils.buildJarAndWhiteBox("SharedStringsWb"); SharedStringsUtils.dumpWithWhiteBox(TestCommon.list("SharedStringsWb"), "SharedStringsBasic.txt", "-Xlog:cds,cds+hashtables");
< prev index next >