< prev index next >

test/runtime/CommandLine/OptionsValidation/TestOptionsWithRanges.java

Print this page


   1 /*
   2  * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */


 104         excludeTestMaxRange("SharedMiscDataSize");
 105         excludeTestMaxRange("SharedMiscCodeSize");
 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
 121          * and would affect other tests that run in parallel.
 122          */
 123         excludeTestMaxRange("ConcGCThreads");

 124         excludeTestMaxRange("G1ConcRefinementThreads");
 125         excludeTestMaxRange("G1RSetRegionEntries");
 126         excludeTestMaxRange("G1RSetSparseRegionEntries");
 127         excludeTestMaxRange("G1UpdateBufferSize");
 128         excludeTestMaxRange("InitialBootClassLoaderMetaspaceSize");
 129         excludeTestMaxRange("InitialHeapSize");
 130         excludeTestMaxRange("MaxHeapSize");
 131         excludeTestMaxRange("MaxRAM");
 132         excludeTestMaxRange("NewSize");
 133         excludeTestMaxRange("OldSize");
 134         excludeTestMaxRange("ParallelGCThreads");
 135 
 136         excludeTestMaxRange("VMThreadStackSize");
 137 
 138         /*
 139          * Remove parameters controlling the code cache. As these
 140          * parameters have implications on the physical memory
 141          * reserved by the VM, setting them to large values may hang
 142          * the system and/or may cause concurrently executed tests to
 143          * fail. These parameters are rigorously checked when the code


   1 /*
   2  * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */


 104         excludeTestMaxRange("SharedMiscDataSize");
 105         excludeTestMaxRange("SharedMiscCodeSize");
 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
 121          * and would affect other tests that run in parallel.
 122          */
 123         excludeTestMaxRange("ConcGCThreads");
 124         excludeTestMinRange("CMSSamplingGrain");
 125         excludeTestMaxRange("G1ConcRefinementThreads");
 126         excludeTestMaxRange("G1RSetRegionEntries");
 127         excludeTestMaxRange("G1RSetSparseRegionEntries");
 128         excludeTestMaxRange("G1UpdateBufferSize");
 129         excludeTestMaxRange("InitialBootClassLoaderMetaspaceSize");
 130         excludeTestMaxRange("InitialHeapSize");
 131         excludeTestMaxRange("MaxHeapSize");
 132         excludeTestMaxRange("MaxRAM");
 133         excludeTestMaxRange("NewSize");
 134         excludeTestMaxRange("OldSize");
 135         excludeTestMaxRange("ParallelGCThreads");
 136 
 137         excludeTestMaxRange("VMThreadStackSize");
 138 
 139         /*
 140          * Remove parameters controlling the code cache. As these
 141          * parameters have implications on the physical memory
 142          * reserved by the VM, setting them to large values may hang
 143          * the system and/or may cause concurrently executed tests to
 144          * fail. These parameters are rigorously checked when the code


< prev index next >