< prev index next >

test/compiler/rtm/cli/TestRTMTotalCountIncrRateOptionOnSupportedConfig.java

Print this page
rev 13277 : 8184800: Streamline RTM flag validity testing with generic flag testing support


  33  * @build sun.hotspot.WhiteBox
  34  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
  35  *                                sun.hotspot.WhiteBox$WhiteBoxPermission
  36  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
  37  *                   -XX:+WhiteBoxAPI
  38  *                   compiler.rtm.cli.TestRTMTotalCountIncrRateOptionOnSupportedConfig
  39  */
  40 
  41 package compiler.rtm.cli;
  42 
  43 public class TestRTMTotalCountIncrRateOptionOnSupportedConfig
  44         extends RTMLockingAwareTest {
  45     private static final String DEFAULT_VALUE = "64";
  46 
  47     private TestRTMTotalCountIncrRateOptionOnSupportedConfig() {
  48         super("RTMTotalCountIncrRate", false, true,
  49                 TestRTMTotalCountIncrRateOptionOnSupportedConfig.DEFAULT_VALUE,
  50                 /* correct values */
  51                 new String[] { "1", "2", "128", "1024" },
  52                 /* incorrect values */
  53                 new String[] { "-1", "0", "3", "42" },
  54                 RTMGenericCommandLineOptionTest.RTM_COUNT_INCR_WARNING);
  55     }
  56 
  57     public static void main(String args[]) throws Throwable {
  58         new TestRTMTotalCountIncrRateOptionOnSupportedConfig().runTestCases();
  59     }
  60 }


  33  * @build sun.hotspot.WhiteBox
  34  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
  35  *                                sun.hotspot.WhiteBox$WhiteBoxPermission
  36  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
  37  *                   -XX:+WhiteBoxAPI
  38  *                   compiler.rtm.cli.TestRTMTotalCountIncrRateOptionOnSupportedConfig
  39  */
  40 
  41 package compiler.rtm.cli;
  42 
  43 public class TestRTMTotalCountIncrRateOptionOnSupportedConfig
  44         extends RTMLockingAwareTest {
  45     private static final String DEFAULT_VALUE = "64";
  46 
  47     private TestRTMTotalCountIncrRateOptionOnSupportedConfig() {
  48         super("RTMTotalCountIncrRate", false, true,
  49                 TestRTMTotalCountIncrRateOptionOnSupportedConfig.DEFAULT_VALUE,
  50                 /* correct values */
  51                 new String[] { "1", "2", "128", "1024" },
  52                 /* incorrect values */
  53                 new String[] { "3", "5", "7", "42" },
  54                 RTMGenericCommandLineOptionTest.RTM_COUNT_INCR_WARNING);
  55     }
  56 
  57     public static void main(String args[]) throws Throwable {
  58         new TestRTMTotalCountIncrRateOptionOnSupportedConfig().runTestCases();
  59     }
  60 }
< prev index next >