test/runtime/CommandLine/OptionsValidation/TestOptionsWithRanges.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File webrev Sdiff test/runtime/CommandLine/OptionsValidation

test/runtime/CommandLine/OptionsValidation/TestOptionsWithRanges.java

Print this page




  42 public class TestOptionsWithRanges {
  43 
  44     public static void main(String[] args) throws Exception {
  45         int failedTests;
  46         Map<String, JVMOption> allOptionsAsMap = JVMOptionsUtils.getOptionsWithRangeAsMap();
  47         List<JVMOption> allOptions;
  48 
  49         /*
  50          * Remove CICompilerCount from testing because currently it can hang system
  51          */
  52         allOptionsAsMap.remove("CICompilerCount");
  53 
  54         /*
  55          * JDK-8136766
  56          * Temporarily remove ThreadStackSize from testing because Windows can set it to 0
  57          * (for default OS size) but other platforms insist it must be greater than 0
  58         */
  59         allOptionsAsMap.remove("ThreadStackSize");
  60 
  61         /*








  62          * Exclude MallocMaxTestWords as it is expected to exit VM at small values (>=0)
  63          */
  64         allOptionsAsMap.remove("MallocMaxTestWords");
  65 
  66         /*
  67          * Exclude below options as their maximum value would consume too much memory
  68          * and would affect other tests that run in parallel.
  69          */
  70         allOptionsAsMap.remove("G1ConcRefinementThreads");
  71         allOptionsAsMap.remove("G1RSetRegionEntries");
  72         allOptionsAsMap.remove("G1RSetSparseRegionEntries");
  73         allOptionsAsMap.remove("G1UpdateBufferSize");
  74         allOptionsAsMap.remove("InitialBootClassLoaderMetaspaceSize");
  75 
  76         /*
  77          * Remove parameters controlling the code cache. As these
  78          * parameters have implications on the physical memory
  79          * reserved by the VM, setting them to large values may hang
  80          * the system and/or may cause concurrently executed tests to
  81          * fail. These parameters are rigorously checked when the code




  42 public class TestOptionsWithRanges {
  43 
  44     public static void main(String[] args) throws Exception {
  45         int failedTests;
  46         Map<String, JVMOption> allOptionsAsMap = JVMOptionsUtils.getOptionsWithRangeAsMap();
  47         List<JVMOption> allOptions;
  48 
  49         /*
  50          * Remove CICompilerCount from testing because currently it can hang system
  51          */
  52         allOptionsAsMap.remove("CICompilerCount");
  53 
  54         /*
  55          * JDK-8136766
  56          * Temporarily remove ThreadStackSize from testing because Windows can set it to 0
  57          * (for default OS size) but other platforms insist it must be greater than 0
  58          */
  59         allOptionsAsMap.remove("ThreadStackSize");
  60 
  61         /*
  62          * JDK-8141650
  63          * Temporarily exclude SharedMiscDataSize as it will exit the VM with exit code 2 and
  64          * "The shared miscellaneous data space is not large enough to preload requested classes."
  65          * message at min value.
  66          */
  67         allOptionsAsMap.remove("SharedMiscDataSize");
  68 
  69         /*
  70          * Exclude MallocMaxTestWords as it is expected to exit VM at small values (>=0)
  71          */
  72         allOptionsAsMap.remove("MallocMaxTestWords");
  73 
  74         /*
  75          * Exclude below options as their maximum value would consume too much memory
  76          * and would affect other tests that run in parallel.
  77          */
  78         allOptionsAsMap.remove("G1ConcRefinementThreads");
  79         allOptionsAsMap.remove("G1RSetRegionEntries");
  80         allOptionsAsMap.remove("G1RSetSparseRegionEntries");
  81         allOptionsAsMap.remove("G1UpdateBufferSize");
  82         allOptionsAsMap.remove("InitialBootClassLoaderMetaspaceSize");
  83 
  84         /*
  85          * Remove parameters controlling the code cache. As these
  86          * parameters have implications on the physical memory
  87          * reserved by the VM, setting them to large values may hang
  88          * the system and/or may cause concurrently executed tests to
  89          * fail. These parameters are rigorously checked when the code


test/runtime/CommandLine/OptionsValidation/TestOptionsWithRanges.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File