--- old/test/hotspot/jtreg/runtime/appcds/sharedStrings/ExerciseGC.java 2018-10-29 14:02:50.565428168 -0700 +++ new/test/hotspot/jtreg/runtime/appcds/sharedStrings/ExerciseGC.java 2018-10-29 14:02:50.201413764 -0700 @@ -27,17 +27,17 @@ * @summary Exercise GC with 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 HelloStringGC sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox * @run driver ExerciseGC - * @run main/othervm -XX:+UseStringDeduplication ExerciseGC - * @run main/othervm -XX:-CompactStrings ExerciseGC + * @run driver ExerciseGC -XX:+UseStringDeduplication + * @run driver ExerciseGC -XX:-CompactStrings */ public class ExerciseGC { public static void main(String[] args) throws Exception { + SharedStringsUtils.setVMOptionsPrefix(args); + SharedStringsUtils.buildJarAndWhiteBox("HelloStringGC"); SharedStringsUtils.dumpWithWhiteBox(TestCommon.list("HelloStringGC"),