< prev index next >
test/hotspot/jtreg/runtime/appcds/sharedStrings/ExerciseGC.java
Print this page
@@ -25,21 +25,21 @@
/*
* @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
+ * @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"),
"SharedStringsBasic.txt", "-Xlog:cds,cds+hashtables");
< prev index next >