< prev index next >
test/compiler/rtm/cli/TestRTMAbortRatioOptionOnUnsupportedConfig.java
Print this page
*** 27,64 ****
* @summary Verify RTMAbortRatio option processing on CPU without rtm
* support or on VM that does not support rtm locking.
* @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.TestRTMAbortRatioOptionOnUnsupportedConfig
*/
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.cli.predicate.AndPredicate;
- import jdk.test.lib.cli.predicate.NotPredicate;
-
public class TestRTMAbortRatioOptionOnUnsupportedConfig
extends RTMGenericCommandLineOptionTest {
private static final String DEFAULT_VALUE = "50";
private TestRTMAbortRatioOptionOnUnsupportedConfig() {
! super(new NotPredicate(
! new AndPredicate(new SupportedCPU(), new SupportedOS(), new SupportedVM())),
! "RTMAbortRatio", false, true,
TestRTMAbortRatioOptionOnUnsupportedConfig.DEFAULT_VALUE,
! "0", "10", "100", "200");
}
public static void main(String args[]) throws Throwable {
! new TestRTMAbortRatioOptionOnUnsupportedConfig().test();
}
}
--- 27,56 ----
* @summary Verify RTMAbortRatio option processing on CPU without rtm
* support or on VM that does not support rtm locking.
* @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.TestRTMAbortRatioOptionOnUnsupportedConfig
*/
package compiler.rtm.cli;
public class TestRTMAbortRatioOptionOnUnsupportedConfig
extends RTMGenericCommandLineOptionTest {
private static final String DEFAULT_VALUE = "50";
private TestRTMAbortRatioOptionOnUnsupportedConfig() {
! super("RTMAbortRatio", false, true,
TestRTMAbortRatioOptionOnUnsupportedConfig.DEFAULT_VALUE,
! "0", "10", "100");
}
public static void main(String args[]) throws Throwable {
! new TestRTMAbortRatioOptionOnUnsupportedConfig().runTestCases();
}
}
< prev index next >