--- a/hotspot/src/share/vm/runtime/globals.hpp Mon Nov 16 08:03:24 2015 +0100
+++ b/hotspot/src/share/vm/runtime/globals.hpp Mon Nov 16 10:54:47 2015 +0100
@@ -3563,7 +3563,7 @@
\
product_pd(intx, CompilerThreadStackSize, \
"Compiler Thread Stack Size (in Kbytes)") \
- range(0, max_intx) \
+ range(0, max_intx /(1 * K)) \
\
develop_pd(size_t, JVMInvokeMethodSlack, \
"Stack space (bytes) required for JVM_InvokeMethod to complete") \
--- a/hotspot/test/runtime/CommandLine/OptionsValidation/TestOptionsWithRanges.java Mon Nov 16 08:03:24 2015 +0100
+++ b/hotspot/test/runtime/CommandLine/OptionsValidation/TestOptionsWithRanges.java Mon Nov 16 10:54:47 2015 +0100
@@ -59,6 +59,13 @@
allOptionsAsMap.remove("ThreadStackSize");
/*
+ * Remove the flag controlling the size of the stack because the
+ * flag has direct influence on the physical memory usage of
+ * the VM.
+ */
+ allOptionsAsMap.remove("CompilerThreadStackSize");
+
+ /*
* Exclude MallocMaxTestWords as it is expected to exit VM at small values (>=0)
*/
allOptionsAsMap.remove("MallocMaxTestWords");