8140327: segfault on solaris-amd64 with "-XX:CompilerThreadStackSize=1" option
Summary: Update range for the CompilerThreadStackSize flag. Remove flag from testing.
Reviewed-by: kvn
--- a/hotspot/src/share/vm/runtime/globals.hpp Fri Nov 13 18:14:41 2015 +0300
+++ b/hotspot/src/share/vm/runtime/globals.hpp Mon Nov 16 09:42:20 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 Fri Nov 13 18:14:41 2015 +0300
+++ b/hotspot/test/runtime/CommandLine/OptionsValidation/TestOptionsWithRanges.java Mon Nov 16 09:42:20 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");