test/runtime/CommandLine/OptionsValidation/TestOptionsWithRanges.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 8140327 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 
  74         /*
  75          * Remove parameters controlling the code cache. As these
  76          * parameters have implications on the physical memory
  77          * reserved by the VM, setting them to large values may hang
  78          * the system and/or may cause concurrently executed tests to
  79          * fail. These parameters are rigorously checked when the code
  80          * cache is initialized (see
  81          * hotspot/src/shared/vm/code/codeCache.cpp), therefore




  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          * Remove the flag controlling the size of the stack because the
  63          * flag has direct influence on the physical memory usage of
  64          * the VM.
  65          */
  66         allOptionsAsMap.remove("CompilerThreadStackSize");
  67 
  68         /*
  69          * Exclude MallocMaxTestWords as it is expected to exit VM at small values (>=0)
  70          */
  71         allOptionsAsMap.remove("MallocMaxTestWords");
  72 
  73         /*
  74          * Exclude below options as their maximum value would consume too much memory
  75          * and would affect other tests that run in parallel.
  76          */
  77         allOptionsAsMap.remove("G1ConcRefinementThreads");
  78         allOptionsAsMap.remove("G1RSetRegionEntries");
  79         allOptionsAsMap.remove("G1RSetSparseRegionEntries");
  80 
  81         /*
  82          * Remove parameters controlling the code cache. As these
  83          * parameters have implications on the physical memory
  84          * reserved by the VM, setting them to large values may hang
  85          * the system and/or may cause concurrently executed tests to
  86          * fail. These parameters are rigorously checked when the code
  87          * cache is initialized (see
  88          * hotspot/src/shared/vm/code/codeCache.cpp), therefore


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