< prev index next >
test/hotspot/jtreg/runtime/appcds/sharedStrings/InternSharedString.java
Print this page
*** 25,47 ****
/*
* @test
* @summary Test shared strings together with string intern operation
* @requires vm.cds.archived.java.heap
* @library /test/hotspot/jtreg/runtime/appcds /test/lib
! * @modules java.base/jdk.internal.misc
! * @modules java.management
! * jdk.jartool/sun.tools.jar
* @compile InternStringTest.java
* @build sun.hotspot.WhiteBox
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
* @run driver InternSharedString
! * @run main/othervm -XX:+UseStringDeduplication InternSharedString
! * @run main/othervm -XX:-CompactStrings InternSharedString
*/
public class InternSharedString {
public static void main(String[] args) throws Exception {
SharedStringsUtils.buildJarAndWhiteBox("InternStringTest");
SharedStringsUtils.dumpWithWhiteBox(TestCommon.list("InternStringTest"),
"ExtraSharedInput.txt", "-Xlog:cds,cds+hashtables");
--- 25,46 ----
/*
* @test
* @summary Test shared strings together with string intern operation
* @requires vm.cds.archived.java.heap
* @library /test/hotspot/jtreg/runtime/appcds /test/lib
! * @modules jdk.jartool/sun.tools.jar
* @compile InternStringTest.java
* @build sun.hotspot.WhiteBox
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
* @run driver InternSharedString
! * @run driver InternSharedString -XX:+UseStringDeduplication
! * @run driver InternSharedString -XX:-CompactStrings
*/
public class InternSharedString {
public static void main(String[] args) throws Exception {
+ SharedStringsUtils.setVMOptionsPrefix(args);
SharedStringsUtils.buildJarAndWhiteBox("InternStringTest");
SharedStringsUtils.dumpWithWhiteBox(TestCommon.list("InternStringTest"),
"ExtraSharedInput.txt", "-Xlog:cds,cds+hashtables");
< prev index next >