8185531: [TESTBUG] Improve test configuration for shared strings

Added extra test configurations to the tests

Reviewed-by: iklam, gziemski
This commit is contained in:
Mikhailo Seledtsov 2018-08-01 19:07:27 -07:00
parent 501fc494c0
commit 8a5467b9c2
11 changed files with 22 additions and 0 deletions

View file

@ -33,6 +33,8 @@
* @build HelloStringGC sun.hotspot.WhiteBox * @build HelloStringGC sun.hotspot.WhiteBox
* @run driver ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* @run main ExerciseGC * @run main ExerciseGC
* @run main/othervm -XX:+UseStringDeduplication ExerciseGC
* @run main/othervm -XX:-CompactStrings ExerciseGC
*/ */
public class ExerciseGC { public class ExerciseGC {
public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {

View file

@ -36,6 +36,8 @@
* @run driver ClassFileInstaller sun.hotspot.WhiteBox sun.hotspot.WhiteBox$WhiteBoxPermission * @run driver ClassFileInstaller sun.hotspot.WhiteBox sun.hotspot.WhiteBox$WhiteBoxPermission
* @build HelloString * @build HelloString
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:. IncompatibleOptions * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:. IncompatibleOptions
* @run main/othervm -XX:+UseStringDeduplication -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:. IncompatibleOptions
* @run main/othervm -XX:-CompactStrings -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:. IncompatibleOptions
*/ */
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;

View file

@ -34,6 +34,8 @@
* @build sun.hotspot.WhiteBox * @build sun.hotspot.WhiteBox
* @run driver ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* @run main InternSharedString * @run main InternSharedString
* @run main/othervm -XX:+UseStringDeduplication InternSharedString
* @run main/othervm -XX:-CompactStrings InternSharedString
*/ */
public class InternSharedString { public class InternSharedString {

View file

@ -32,6 +32,8 @@
* jdk.jartool/sun.tools.jar * jdk.jartool/sun.tools.jar
* @build HelloString * @build HelloString
* @run main InvalidFileFormat * @run main InvalidFileFormat
* @run main/othervm -XX:+UseStringDeduplication InvalidFileFormat
* @run main/othervm -XX:-CompactStrings InvalidFileFormat
*/ */
import jdk.test.lib.process.OutputAnalyzer; import jdk.test.lib.process.OutputAnalyzer;

View file

@ -32,6 +32,8 @@
* jdk.jartool/sun.tools.jar * jdk.jartool/sun.tools.jar
* @build HelloString * @build HelloString
* @run main LargePages * @run main LargePages
* @run main/othervm -XX:+UseStringDeduplication LargePages
* @run main/othervm -XX:-CompactStrings LargePages
*/ */
public class LargePages { public class LargePages {
public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {

View file

@ -34,6 +34,8 @@
* @build sun.hotspot.WhiteBox * @build sun.hotspot.WhiteBox
* @run driver ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* @run main LockSharedStrings * @run main LockSharedStrings
* @run main/othervm -XX:+UseStringDeduplication LockSharedStrings
* @run main/othervm -XX:-CompactStrings LockSharedStrings
*/ */
public class LockSharedStrings { public class LockSharedStrings {

View file

@ -32,6 +32,8 @@
* jdk.jartool/sun.tools.jar * jdk.jartool/sun.tools.jar
* @build HelloString * @build HelloString
* @run main SharedStringsBasic * @run main SharedStringsBasic
* @run main/othervm -XX:+UseStringDeduplication SharedStringsBasic
* @run main/othervm -XX:-CompactStrings SharedStringsBasic
*/ */
import jdk.test.lib.process.OutputAnalyzer; import jdk.test.lib.process.OutputAnalyzer;
import jdk.test.lib.process.ProcessTools; import jdk.test.lib.process.ProcessTools;

View file

@ -33,6 +33,8 @@
* @build HelloStringPlus sun.hotspot.WhiteBox * @build HelloStringPlus sun.hotspot.WhiteBox
* @run driver ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* @run main SharedStringsBasicPlus * @run main SharedStringsBasicPlus
* @run main/othervm -XX:+UseStringDeduplication SharedStringsBasicPlus
* @run main/othervm -XX:-CompactStrings SharedStringsBasicPlus
*/ */
public class SharedStringsBasicPlus { public class SharedStringsBasicPlus {

View file

@ -30,6 +30,8 @@
* @modules jdk.jartool/sun.tools.jar * @modules jdk.jartool/sun.tools.jar
* @build HelloString * @build HelloString
* @run main SharedStringsStress * @run main SharedStringsStress
* @run main/othervm -XX:+UseStringDeduplication SharedStringsStress
* @run main/othervm -XX:-CompactStrings SharedStringsStress
*/ */
import java.io.File; import java.io.File;
import java.io.FileOutputStream; import java.io.FileOutputStream;

View file

@ -33,6 +33,8 @@
* @build sun.hotspot.WhiteBox SharedStringsWb * @build sun.hotspot.WhiteBox SharedStringsWb
* @run driver ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* @run main SharedStringsWbTest * @run main SharedStringsWbTest
* @run main/othervm -XX:+UseStringDeduplication SharedStringsWbTest
* @run main/othervm -XX:-CompactStrings SharedStringsWbTest
*/ */
import java.io.*; import java.io.*;

View file

@ -32,6 +32,8 @@
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @modules java.management * @modules java.management
* @run main SysDictCrash * @run main SysDictCrash
* @run main/othervm -XX:+UseStringDeduplication SysDictCrash
* @run main/othervm -XX:-CompactStrings SysDictCrash
*/ */
import jdk.test.lib.process.OutputAnalyzer; import jdk.test.lib.process.OutputAnalyzer;