< prev index next >

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

Print this page

*** 25,45 **** /* * @test * @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 * @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 */ public class ExerciseGC { public static void main(String[] args) throws Exception { SharedStringsUtils.buildJarAndWhiteBox("HelloStringGC"); SharedStringsUtils.dumpWithWhiteBox(TestCommon.list("HelloStringGC"), "SharedStringsBasic.txt", "-Xlog:cds,cds+hashtables"); --- 25,45 ---- /* * @test * @summary Exercise GC with shared strings * @requires vm.cds.archived.java.heap * @library /test/hotspot/jtreg/runtime/appcds /test/lib ! * @modules jdk.jartool/sun.tools.jar * @build HelloStringGC sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox * @run driver 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"), "SharedStringsBasic.txt", "-Xlog:cds,cds+hashtables");
< prev index next >