< prev index next >
test/compiler/rtm/cli/TestUseRTMLockingOptionWithBiasedLocking.java
Print this page
*** 27,61 ****
* @summary Verify processing of UseRTMLocking and UseBiasedLocking
* options combination on CPU and VM with rtm support.
* @library /test/lib /
* @modules java.base/jdk.internal.misc
* java.management
! *
* @build sun.hotspot.WhiteBox
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI
* compiler.rtm.cli.TestUseRTMLockingOptionWithBiasedLocking
*/
package compiler.rtm.cli;
- import compiler.testlibrary.rtm.predicate.SupportedCPU;
- import compiler.testlibrary.rtm.predicate.SupportedOS;
- import compiler.testlibrary.rtm.predicate.SupportedVM;
import jdk.test.lib.process.ExitCode;
import jdk.test.lib.cli.CommandLineOptionTest;
- import jdk.test.lib.cli.predicate.AndPredicate;
! public class TestUseRTMLockingOptionWithBiasedLocking
! extends CommandLineOptionTest {
! private TestUseRTMLockingOptionWithBiasedLocking() {
! super(new AndPredicate(new SupportedCPU(), new SupportedOS(), new SupportedVM()));
! }
- @Override
public void runTestCases() throws Throwable {
String warningMessage
= RTMGenericCommandLineOptionTest.RTM_BIASED_LOCKING_WARNING;
String shouldPassMessage = "JVM startup should pass with both "
+ "-XX:+UseRTMLocking and "
--- 27,52 ----
* @summary Verify processing of UseRTMLocking and UseBiasedLocking
* options combination on CPU and VM with rtm support.
* @library /test/lib /
* @modules java.base/jdk.internal.misc
* java.management
! * @requires vm.flavor == "server" & !vm.emulatedClient & vm.rtm.cpu & vm.rtm.os
* @build sun.hotspot.WhiteBox
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI
* compiler.rtm.cli.TestUseRTMLockingOptionWithBiasedLocking
*/
package compiler.rtm.cli;
import jdk.test.lib.process.ExitCode;
import jdk.test.lib.cli.CommandLineOptionTest;
! public class TestUseRTMLockingOptionWithBiasedLocking {
public void runTestCases() throws Throwable {
String warningMessage
= RTMGenericCommandLineOptionTest.RTM_BIASED_LOCKING_WARNING;
String shouldPassMessage = "JVM startup should pass with both "
+ "-XX:+UseRTMLocking and "
*** 96,103 ****
CommandLineOptionTest.UNLOCK_EXPERIMENTAL_VM_OPTIONS,
"-XX:+UseRTMLocking", "-XX:+UseBiasedLocking");
}
public static void main(String args[]) throws Throwable {
! new TestUseRTMLockingOptionWithBiasedLocking().test();
}
}
--- 87,94 ----
CommandLineOptionTest.UNLOCK_EXPERIMENTAL_VM_OPTIONS,
"-XX:+UseRTMLocking", "-XX:+UseBiasedLocking");
}
public static void main(String args[]) throws Throwable {
! new TestUseRTMLockingOptionWithBiasedLocking().runTestCases();
}
}
< prev index next >