mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 10:34:38 +02:00
8185531: [TESTBUG] Improve test configuration for shared strings
Added extra test configurations to the tests Reviewed-by: iklam, gziemski
This commit is contained in:
parent
501fc494c0
commit
8a5467b9c2
11 changed files with 22 additions and 0 deletions
|
@ -33,6 +33,8 @@
|
|||
* @build HelloStringGC sun.hotspot.WhiteBox
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
* @run main ExerciseGC
|
||||
* @run main/othervm -XX:+UseStringDeduplication ExerciseGC
|
||||
* @run main/othervm -XX:-CompactStrings ExerciseGC
|
||||
*/
|
||||
public class ExerciseGC {
|
||||
public static void main(String[] args) throws Exception {
|
||||
|
|
|
@ -36,6 +36,8 @@
|
|||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox sun.hotspot.WhiteBox$WhiteBoxPermission
|
||||
* @build HelloString
|
||||
* @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;
|
||||
|
|
|
@ -34,6 +34,8 @@
|
|||
* @build sun.hotspot.WhiteBox
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
* @run main InternSharedString
|
||||
* @run main/othervm -XX:+UseStringDeduplication InternSharedString
|
||||
* @run main/othervm -XX:-CompactStrings InternSharedString
|
||||
*/
|
||||
|
||||
public class InternSharedString {
|
||||
|
|
|
@ -32,6 +32,8 @@
|
|||
* jdk.jartool/sun.tools.jar
|
||||
* @build HelloString
|
||||
* @run main InvalidFileFormat
|
||||
* @run main/othervm -XX:+UseStringDeduplication InvalidFileFormat
|
||||
* @run main/othervm -XX:-CompactStrings InvalidFileFormat
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.OutputAnalyzer;
|
||||
|
|
|
@ -32,6 +32,8 @@
|
|||
* jdk.jartool/sun.tools.jar
|
||||
* @build HelloString
|
||||
* @run main LargePages
|
||||
* @run main/othervm -XX:+UseStringDeduplication LargePages
|
||||
* @run main/othervm -XX:-CompactStrings LargePages
|
||||
*/
|
||||
public class LargePages {
|
||||
public static void main(String[] args) throws Exception {
|
||||
|
|
|
@ -34,6 +34,8 @@
|
|||
* @build sun.hotspot.WhiteBox
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
* @run main LockSharedStrings
|
||||
* @run main/othervm -XX:+UseStringDeduplication LockSharedStrings
|
||||
* @run main/othervm -XX:-CompactStrings LockSharedStrings
|
||||
*/
|
||||
|
||||
public class LockSharedStrings {
|
||||
|
|
|
@ -32,6 +32,8 @@
|
|||
* jdk.jartool/sun.tools.jar
|
||||
* @build HelloString
|
||||
* @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.ProcessTools;
|
||||
|
|
|
@ -33,6 +33,8 @@
|
|||
* @build HelloStringPlus sun.hotspot.WhiteBox
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
* @run main SharedStringsBasicPlus
|
||||
* @run main/othervm -XX:+UseStringDeduplication SharedStringsBasicPlus
|
||||
* @run main/othervm -XX:-CompactStrings SharedStringsBasicPlus
|
||||
*/
|
||||
|
||||
public class SharedStringsBasicPlus {
|
||||
|
|
|
@ -30,6 +30,8 @@
|
|||
* @modules jdk.jartool/sun.tools.jar
|
||||
* @build HelloString
|
||||
* @run main SharedStringsStress
|
||||
* @run main/othervm -XX:+UseStringDeduplication SharedStringsStress
|
||||
* @run main/othervm -XX:-CompactStrings SharedStringsStress
|
||||
*/
|
||||
import java.io.File;
|
||||
import java.io.FileOutputStream;
|
||||
|
|
|
@ -33,6 +33,8 @@
|
|||
* @build sun.hotspot.WhiteBox SharedStringsWb
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
* @run main SharedStringsWbTest
|
||||
* @run main/othervm -XX:+UseStringDeduplication SharedStringsWbTest
|
||||
* @run main/othervm -XX:-CompactStrings SharedStringsWbTest
|
||||
*/
|
||||
|
||||
import java.io.*;
|
||||
|
|
|
@ -32,6 +32,8 @@
|
|||
* @modules java.base/jdk.internal.misc
|
||||
* @modules java.management
|
||||
* @run main SysDictCrash
|
||||
* @run main/othervm -XX:+UseStringDeduplication SysDictCrash
|
||||
* @run main/othervm -XX:-CompactStrings SysDictCrash
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.OutputAnalyzer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue