--- old/test/hotspot/jtreg/runtime/appcds/sharedStrings/SharedStringsBasicPlus.java 2018-10-29 14:02:57.441700263 -0700 +++ new/test/hotspot/jtreg/runtime/appcds/sharedStrings/SharedStringsBasicPlus.java 2018-10-29 14:02:57.085686176 -0700 @@ -27,20 +27,20 @@ * @summary Basic plus test for shared strings * @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 + * @modules jdk.jartool/sun.tools.jar * @build HelloStringPlus sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox * @run driver SharedStringsBasicPlus - * @run main/othervm -XX:+UseStringDeduplication SharedStringsBasicPlus - * @run main/othervm -XX:-CompactStrings SharedStringsBasicPlus + * @run driver SharedStringsBasicPlus -XX:+UseStringDeduplication + * @run driver SharedStringsBasicPlus -XX:-CompactStrings */ public class SharedStringsBasicPlus { public static void main(String[] args) throws Exception { - SharedStringsUtils.buildJarAndWhiteBox("HelloStringPlus"); + SharedStringsUtils.setVMOptionsPrefix(args); + SharedStringsUtils.buildJarAndWhiteBox("HelloStringPlus"); + SharedStringsUtils.dumpWithWhiteBox( TestCommon.list("HelloStringPlus"), "SharedStringsBasic.txt", "-Xlog:cds,cds+hashtables");