< prev index next >
test/compiler/rtm/cli/TestRTMTotalCountIncrRateOptionOnUnsupportedConfig.java
Print this page
*** 27,65 ****
* @summary Verify RTMTotalCountIncrRate option processing on CPU without
* rtm support and/or on VM without rtm locking 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.TestRTMTotalCountIncrRateOptionOnUnsupportedConfig
*/
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 TestRTMTotalCountIncrRateOptionOnUnsupportedConfig
extends RTMGenericCommandLineOptionTest {
private static final String DEFAULT_VALUE = "64";
private TestRTMTotalCountIncrRateOptionOnUnsupportedConfig() {
! super(new NotPredicate(
! new AndPredicate(new SupportedCPU(), new SupportedOS(), new SupportedVM())),
! "RTMTotalCountIncrRate", false, true,
TestRTMTotalCountIncrRateOptionOnUnsupportedConfig
.DEFAULT_VALUE,
! "-1", "0", "42", "128");
}
public static void main(String args[]) throws Throwable {
! new TestRTMTotalCountIncrRateOptionOnUnsupportedConfig().test();
}
}
--- 27,57 ----
* @summary Verify RTMTotalCountIncrRate option processing on CPU without
* rtm support and/or on VM without rtm locking 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.TestRTMTotalCountIncrRateOptionOnUnsupportedConfig
*/
package compiler.rtm.cli;
public class TestRTMTotalCountIncrRateOptionOnUnsupportedConfig
extends RTMGenericCommandLineOptionTest {
private static final String DEFAULT_VALUE = "64";
private TestRTMTotalCountIncrRateOptionOnUnsupportedConfig() {
! super("RTMTotalCountIncrRate", false, true,
TestRTMTotalCountIncrRateOptionOnUnsupportedConfig
.DEFAULT_VALUE,
! "1", "42", "128");
}
public static void main(String args[]) throws Throwable {
! new TestRTMTotalCountIncrRateOptionOnUnsupportedConfig().runTestCases();
}
}
< prev index next >