< prev index next >

test/runtime/CommandLine/OptionsValidation/TestOptionsWithRanges.java

Print this page




  73     }
  74 
  75     public static void main(String[] args) throws Exception {
  76         int failedTests;
  77         List<JVMOption> allOptions;
  78 
  79         allOptionsAsMap = JVMOptionsUtils.getOptionsWithRangeAsMap(origin -> (!(origin.contains("develop") || origin.contains("notproduct"))));
  80 
  81         /* Shared flags can cause JVM to exit with error code 2 */
  82         setAllowedExitCodes("SharedReadWriteSize", 2);
  83         setAllowedExitCodes("SharedReadOnlySize", 2);
  84         setAllowedExitCodes("SharedMiscDataSize", 2);
  85         setAllowedExitCodes("SharedMiscCodeSize", 2);
  86 
  87         /*
  88          * Remove CICompilerCount from testing because currently it can hang system
  89          */
  90         excludeTestMaxRange("CICompilerCount");
  91 
  92         /*








  93          * JDK-8136766
  94          * Temporarily remove ThreadStackSize from testing because Windows can set it to 0
  95          * (for default OS size) but other platforms insist it must be greater than 0
  96         */
  97         excludeTestRange("ThreadStackSize");
  98 
  99         /*
 100          * Remove the flag controlling the size of the stack because the
 101          * flag has direct influence on the physical memory usage of
 102          * the VM.
 103          */
 104         allOptionsAsMap.remove("CompilerThreadStackSize");
 105 
 106         /*
 107          * Exclude MallocMaxTestWords as it is expected to exit VM at small values (>=0)
 108          */
 109         excludeTestMinRange("MallocMaxTestWords");
 110 
 111         /*
 112          * Exclude below options as their maximum value would consume too much memory




  73     }
  74 
  75     public static void main(String[] args) throws Exception {
  76         int failedTests;
  77         List<JVMOption> allOptions;
  78 
  79         allOptionsAsMap = JVMOptionsUtils.getOptionsWithRangeAsMap(origin -> (!(origin.contains("develop") || origin.contains("notproduct"))));
  80 
  81         /* Shared flags can cause JVM to exit with error code 2 */
  82         setAllowedExitCodes("SharedReadWriteSize", 2);
  83         setAllowedExitCodes("SharedReadOnlySize", 2);
  84         setAllowedExitCodes("SharedMiscDataSize", 2);
  85         setAllowedExitCodes("SharedMiscCodeSize", 2);
  86 
  87         /*
  88          * Remove CICompilerCount from testing because currently it can hang system
  89          */
  90         excludeTestMaxRange("CICompilerCount");
  91 
  92         /*
  93          * JDK-8156679
  94          * Temporarily exclude from range testing as the range is not
  95          * valid for all platforms
  96          */
  97         excludeTestRange("AllocatePrefetchLines");
  98         excludeTestRange("AllocateInstancePrefetchLines");
  99 
 100         /*
 101          * JDK-8136766
 102          * Temporarily remove ThreadStackSize from testing because Windows can set it to 0
 103          * (for default OS size) but other platforms insist it must be greater than 0
 104         */
 105         excludeTestRange("ThreadStackSize");
 106 
 107         /*
 108          * Remove the flag controlling the size of the stack because the
 109          * flag has direct influence on the physical memory usage of
 110          * the VM.
 111          */
 112         allOptionsAsMap.remove("CompilerThreadStackSize");
 113 
 114         /*
 115          * Exclude MallocMaxTestWords as it is expected to exit VM at small values (>=0)
 116          */
 117         excludeTestMinRange("MallocMaxTestWords");
 118 
 119         /*
 120          * Exclude below options as their maximum value would consume too much memory


< prev index next >