# HG changeset patch # User thartmann # Date 1484639622 -3600 # Node ID c83d7ccaf56ef165a4ae17cdf4a680d0e9ba065a # Parent 21041ea7c0fec7750eb853224616e1ea7476e4bd 8172731: runtime/Thread/TooSmallStackSize.java fails on solaris-x64 with product build Summary: The C2 compiler threads require a large stack with the Solaris Studio C++ compiler version 5.13 and product VM build. Reviewed-by: sspitsyn, dcubed, goetz, dholmes diff -r 21041ea7c0fe -r c83d7ccaf56e hotspot/src/os_cpu/solaris_x86/vm/os_solaris_x86.cpp --- a/hotspot/src/os_cpu/solaris_x86/vm/os_solaris_x86.cpp Fri Jan 13 12:27:54 2017 -0500 +++ b/hotspot/src/os_cpu/solaris_x86/vm/os_solaris_x86.cpp Tue Jan 17 08:53:42 2017 +0100 @@ -89,7 +89,10 @@ // Minimum usable stack sizes required to get to user code. Space for // HotSpot guard pages is added later. #ifdef _LP64 -size_t os::Posix::_compiler_thread_min_stack_allowed = 202 * K; +// The adlc generated method 'State::MachNodeGenerator(int)' used by the C2 compiler +// threads requires a large stack with the Solaris Studio C++ compiler version 5.13 +// and product VM builds (debug builds require significantly less stack space). +size_t os::Posix::_compiler_thread_min_stack_allowed = 325 * K; size_t os::Posix::_java_thread_min_stack_allowed = 48 * K; size_t os::Posix::_vm_internal_thread_min_stack_allowed = 224 * K; #else