test/compiler/arguments/CheckCICompilerCount.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File 8134239 Sdiff test/compiler/arguments

test/compiler/arguments/CheckCICompilerCount.java

Print this page




  58             "-version"
  59         },
  60         {
  61             "-client",
  62             "-XX:-TieredCompilation",
  63             "-XX:+PrintFlagsFinal",
  64             "-XX:CICompilerCount=1",
  65             "-version"
  66         }
  67     };
  68 
  69     private static final String[][] NON_TIERED_EXPECTED_OUTPUTS = {
  70         {
  71             "CICompilerCount (0) must be at least 1",
  72             "Improperly specified VM option 'CICompilerCount=0'"
  73         },
  74         {
  75             "intx CICompilerCount                          := 1                                   {product}"
  76         },
  77         {
  78             "CICompilerCount=0 must be at least 1",
  79             "Improperly specified VM option 'CICompilerCount=0'"
  80         },
  81         {
  82             "intx CICompilerCount                          := 1                                   {product}"
  83         }
  84     };
  85 
  86     private static final int[] NON_TIERED_EXIT = {
  87         1,
  88         0,
  89         1,
  90         0
  91     };
  92 
  93     private static final String[][] TIERED_ARGUMENTS = {
  94         {
  95             "-server",
  96             "-XX:+TieredCompilation",
  97             "-XX:+PrintFlagsFinal",
  98             "-XX:CICompilerCount=1",


 113             "-version"
 114         },
 115         {
 116             "-client",
 117             "-XX:+TieredCompilation",
 118             "-XX:+PrintFlagsFinal",
 119             "-XX:CICompilerCount=2",
 120             "-version"
 121         }
 122     };
 123 
 124     private static final String[][] TIERED_EXPECTED_OUTPUTS = {
 125         {
 126             "CICompilerCount (1) must be at least 2",
 127             "Improperly specified VM option 'CICompilerCount=1'"
 128         },
 129         {
 130             "intx CICompilerCount                          := 2                                   {product}"
 131         },
 132         {
 133             "CICompilerCount=1 must be at least 2",
 134             "Improperly specified VM option 'CICompilerCount=1'"
 135         },
 136         {
 137             "intx CICompilerCount                          := 2                                   {product}"
 138         }
 139     };
 140 
 141     private static final int[] TIERED_EXIT = {
 142         1,
 143         0,
 144         1,
 145         0
 146     };
 147 
 148     private static void verifyValidOption(String[] arguments, String[] expected_outputs, int exit, boolean tiered) throws Exception {
 149         ProcessBuilder pb;
 150         OutputAnalyzer out;
 151 
 152         pb = ProcessTools.createJavaProcessBuilder(arguments);
 153         out = new OutputAnalyzer(pb.start());




  58             "-version"
  59         },
  60         {
  61             "-client",
  62             "-XX:-TieredCompilation",
  63             "-XX:+PrintFlagsFinal",
  64             "-XX:CICompilerCount=1",
  65             "-version"
  66         }
  67     };
  68 
  69     private static final String[][] NON_TIERED_EXPECTED_OUTPUTS = {
  70         {
  71             "CICompilerCount (0) must be at least 1",
  72             "Improperly specified VM option 'CICompilerCount=0'"
  73         },
  74         {
  75             "intx CICompilerCount                          := 1                                   {product}"
  76         },
  77         {
  78             "CICompilerCount (0) must be at least 1",
  79             "Improperly specified VM option 'CICompilerCount=0'"
  80         },
  81         {
  82             "intx CICompilerCount                          := 1                                   {product}"
  83         }
  84     };
  85 
  86     private static final int[] NON_TIERED_EXIT = {
  87         1,
  88         0,
  89         1,
  90         0
  91     };
  92 
  93     private static final String[][] TIERED_ARGUMENTS = {
  94         {
  95             "-server",
  96             "-XX:+TieredCompilation",
  97             "-XX:+PrintFlagsFinal",
  98             "-XX:CICompilerCount=1",


 113             "-version"
 114         },
 115         {
 116             "-client",
 117             "-XX:+TieredCompilation",
 118             "-XX:+PrintFlagsFinal",
 119             "-XX:CICompilerCount=2",
 120             "-version"
 121         }
 122     };
 123 
 124     private static final String[][] TIERED_EXPECTED_OUTPUTS = {
 125         {
 126             "CICompilerCount (1) must be at least 2",
 127             "Improperly specified VM option 'CICompilerCount=1'"
 128         },
 129         {
 130             "intx CICompilerCount                          := 2                                   {product}"
 131         },
 132         {
 133             "CICompilerCount (1) must be at least 2",
 134             "Improperly specified VM option 'CICompilerCount=1'"
 135         },
 136         {
 137             "intx CICompilerCount                          := 2                                   {product}"
 138         }
 139     };
 140 
 141     private static final int[] TIERED_EXIT = {
 142         1,
 143         0,
 144         1,
 145         0
 146     };
 147 
 148     private static void verifyValidOption(String[] arguments, String[] expected_outputs, int exit, boolean tiered) throws Exception {
 149         ProcessBuilder pb;
 150         OutputAnalyzer out;
 151 
 152         pb = ProcessTools.createJavaProcessBuilder(arguments);
 153         out = new OutputAnalyzer(pb.start());


test/compiler/arguments/CheckCICompilerCount.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File