28 * @summary Verify UseRTMLocking option processing on CPU without |
28 * @summary Verify UseRTMLocking option processing on CPU without |
29 * rtm support. |
29 * rtm support. |
30 * @library /testlibrary /test/lib / |
30 * @library /testlibrary /test/lib / |
31 * @modules java.base/jdk.internal.misc |
31 * @modules java.base/jdk.internal.misc |
32 * java.management |
32 * java.management |
33 * @build TestUseRTMLockingOptionOnUnsupportedCPU |
33 * |
|
34 * @build compiler.rtm.cli.TestUseRTMLockingOptionOnUnsupportedCPU |
34 * @run driver ClassFileInstaller sun.hotspot.WhiteBox |
35 * @run driver ClassFileInstaller sun.hotspot.WhiteBox |
35 * sun.hotspot.WhiteBox$WhiteBoxPermission |
36 * sun.hotspot.WhiteBox$WhiteBoxPermission |
36 * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions |
37 * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions |
37 * -XX:+WhiteBoxAPI TestUseRTMLockingOptionOnUnsupportedCPU |
38 * -XX:+WhiteBoxAPI |
|
39 * compiler.rtm.cli.TestUseRTMLockingOptionOnUnsupportedCPU |
38 */ |
40 */ |
39 |
41 |
40 import jdk.test.lib.*; |
42 package compiler.rtm.cli; |
41 import jdk.test.lib.cli.*; |
43 |
|
44 import compiler.testlibrary.rtm.predicate.SupportedCPU; |
|
45 import compiler.testlibrary.rtm.predicate.SupportedVM; |
|
46 import jdk.test.lib.ExitCode; |
|
47 import jdk.test.lib.Platform; |
|
48 import jdk.test.lib.cli.CommandLineOptionTest; |
42 import jdk.test.lib.cli.predicate.AndPredicate; |
49 import jdk.test.lib.cli.predicate.AndPredicate; |
43 import jdk.test.lib.cli.predicate.NotPredicate; |
50 import jdk.test.lib.cli.predicate.NotPredicate; |
44 import compiler.testlibrary.rtm.predicate.SupportedCPU; |
|
45 import compiler.testlibrary.rtm.predicate.SupportedVM; |
|
46 |
51 |
47 public class TestUseRTMLockingOptionOnUnsupportedCPU |
52 public class TestUseRTMLockingOptionOnUnsupportedCPU |
48 extends CommandLineOptionTest { |
53 extends CommandLineOptionTest { |
49 private static final String DEFAULT_VALUE = "false"; |
54 private static final String DEFAULT_VALUE = "false"; |
50 |
55 |