diff -r 1af223983f82 -r 1a8db9cf1407 hotspot/src/os_cpu/linux_s390/vm/os_linux_s390.cpp --- a/hotspot/src/os_cpu/linux_s390/vm/os_linux_s390.cpp Tue Nov 08 16:30:36 2016 +0100 +++ b/hotspot/src/os_cpu/linux_s390/vm/os_linux_s390.cpp Mon Dec 19 15:48:57 2016 -0800 @@ -473,11 +473,11 @@ //////////////////////////////////////////////////////////////////////////////// // thread stack -// These sizes exclude libc stack guard pages, but include -// the HotSpot guard pages. -size_t os::Posix::_compiler_thread_min_stack_allowed = 128 * K; -size_t os::Posix::_java_thread_min_stack_allowed = 236 * K; -size_t os::Posix::_vm_internal_thread_min_stack_allowed = 128 * K; +// Minimum usable stack sizes required to get to user code. Space for +// HotSpot guard pages is added later. +size_t os::Posix::_compiler_thread_min_stack_allowed = (52 DEBUG_ONLY(+ 32)) * K; +size_t os::Posix::_java_thread_min_stack_allowed = (32 DEBUG_ONLY(+ 8)) * K; +size_t os::Posix::_vm_internal_thread_min_stack_allowed = 32 * K; // Return default stack size for thr_type. size_t os::Posix::default_stack_size(os::ThreadType thr_type) {