< prev index next >

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

Print this page

@@ -25,23 +25,22 @@
 /*
  * @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
+ * @modules 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
+ * @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 >