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          * JDK-8142874
  71          * Temporarily exclude Shared* flagse as they will exit the VM with exit code 2 and
  72          * "The shared miscellaneous data space is not large enough to preload requested classes."
  73          * message at max values.
  74          */
  75         allOptionsAsMap.remove("SharedReadWriteSize");
  76         allOptionsAsMap.remove("SharedReadOnlySize");
  77         allOptionsAsMap.remove("SharedMiscDataSize");
  78         allOptionsAsMap.remove("SharedMiscCodeSize");
  79 
  80         /*
  81          * Exclude MallocMaxTestWords as it is expected to exit VM at small values (>=0)
  82          */
  83         allOptionsAsMap.remove("MallocMaxTestWords");
  84 
  85         /*
  86          * Exclude below options as their maximum value would consume too much memory
  87          * and would affect other tests that run in parallel.
  88          */
  89         allOptionsAsMap.remove("G1ConcRefinementThreads");
  90         allOptionsAsMap.remove("G1RSetRegionEntries");
  91         allOptionsAsMap.remove("G1RSetSparseRegionEntries");
  92         allOptionsAsMap.remove("G1UpdateBufferSize");
  93         allOptionsAsMap.remove("InitialBootClassLoaderMetaspaceSize");
  94 
  95         /*
  96          * Remove parameters controlling the code cache. As these
  97          * parameters have implications on the physical memory
  98          * reserved by the VM, setting them to large values may hang
  99          * the system and/or may cause concurrently executed tests to
 100          * 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