--- a/hotspot/test/runtime/CommandLine/OptionsValidation/TestOptionsWithRanges.java Fri Oct 09 11:28:11 2015 +0200
+++ b/hotspot/test/runtime/CommandLine/OptionsValidation/TestOptionsWithRanges.java Fri Oct 09 14:21:26 2015 +0200
@@ -51,6 +51,24 @@
*/
allOptionsAsMap.remove("CICompilerCount");
+ /*
+ * Remove parameters controlling the code cache. As these
+ * parameters have implications on the physical memory
+ * reserved by the VM, setting them to large values may hang
+ * the system and/or may cause concurrently executed tests to
+ * fail. These parameters are rigorously checked when the code
+ * cache is initialized (see
+ * hotspot/src/shared/vm/code/codeCache.cpp), therefore
+ * omitting testing for them does not pose a problem.
+ */
+ allOptionsAsMap.remove("InitialCodeCacheSize");
+ allOptionsAsMap.remove("CodeCacheMinimumUseSpace");
+ allOptionsAsMap.remove("ReservedCodeCacheSize");
+ allOptionsAsMap.remove("NonProfiledCodeHeapSize");
+ allOptionsAsMap.remove("ProfiledCodeHeapSize");
+ allOptionsAsMap.remove("NonNMethodCodeHeapSize");
+ allOptionsAsMap.remove("CodeCacheExpansionSize");
+
allOptions = new ArrayList<>(allOptionsAsMap.values());
Asserts.assertGT(allOptions.size(), 0, "Options with ranges not found!");