Mercurial > hg > graal-jvmci-8
comparison test/compiler/rtm/cli/TestUseRTMDeoptOptionOnUnsupportedConfig.java @ 20285:cabe05c85665
8054805: Update CLI tests on RTM options to reflect changes in JDK-8054376
Reviewed-by: kvn
author | fzhinkin |
---|---|
date | Mon, 11 Aug 2014 19:19:47 +0400 |
parents | 9f9257611ade |
children |
comparison
equal
deleted
inserted
replaced
20284:dac61d838654 | 20285:cabe05c85665 |
---|---|
46 private static final String DEFAULT_VALUE = "false"; | 46 private static final String DEFAULT_VALUE = "false"; |
47 | 47 |
48 private TestUseRTMDeoptOptionOnUnsupportedConfig() { | 48 private TestUseRTMDeoptOptionOnUnsupportedConfig() { |
49 super(new NotPredicate(new AndPredicate(new SupportedCPU(), | 49 super(new NotPredicate(new AndPredicate(new SupportedCPU(), |
50 new SupportedVM())), | 50 new SupportedVM())), |
51 "UseRTMDeopt", true, true, | 51 "UseRTMDeopt", true, false, |
52 TestUseRTMDeoptOptionOnUnsupportedConfig.DEFAULT_VALUE, "true"); | 52 TestUseRTMDeoptOptionOnUnsupportedConfig.DEFAULT_VALUE, "true"); |
53 } | 53 } |
54 | 54 |
55 @Override | 55 @Override |
56 protected void runX86SupportedVMTestCases() throws Throwable { | 56 protected void runX86SupportedVMTestCases() throws Throwable { |
57 super.verifyJVMStartup(); | 57 super.verifyJVMStartup(); |
58 // verify default value | 58 // verify default value |
59 CommandLineOptionTest.verifyOptionValueForSameVM(optionName, | 59 CommandLineOptionTest.verifyOptionValueForSameVM(optionName, |
60 defaultValue, | 60 defaultValue); |
61 CommandLineOptionTest.UNLOCK_EXPERIMENTAL_VM_OPTIONS); | |
62 // verify that until RTMLocking is not used, value | 61 // verify that until RTMLocking is not used, value |
63 // will be set to default false. | 62 // will be set to default false. |
64 CommandLineOptionTest.verifyOptionValueForSameVM(optionName, | 63 CommandLineOptionTest.verifyOptionValueForSameVM(optionName, |
65 defaultValue, | 64 defaultValue, "-XX:+UseRTMDeopt"); |
66 CommandLineOptionTest.UNLOCK_EXPERIMENTAL_VM_OPTIONS, | |
67 "-XX:+UseRTMDeopt"); | |
68 } | 65 } |
69 | 66 |
70 public static void main(String args[]) throws Throwable { | 67 public static void main(String args[]) throws Throwable { |
71 new TestUseRTMDeoptOptionOnUnsupportedConfig().test(); | 68 new TestUseRTMDeoptOptionOnUnsupportedConfig().test(); |
72 } | 69 } |