From b0ea7e23f55fc74b911aa5e9dc146631bbcd2187 Mon Sep 17 00:00:00 2001 From: paulbeach Date: Fri, 12 Jun 2015 08:59:48 +0000 Subject: [PATCH] Default stack size is too small on HPUX - its 64 KB on PA, and 256 KB on Itanium --- src/jrd/ThreadStart.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/jrd/ThreadStart.cpp b/src/jrd/ThreadStart.cpp index 877496eec0..74908a0aad 100644 --- a/src/jrd/ThreadStart.cpp +++ b/src/jrd/ThreadStart.cpp @@ -181,14 +181,14 @@ void ThreadStart::start(ThreadEntryPoint* routine, if (state) Firebird::system_call_failed::raise("pthread_attr_init", state); -#if defined(_AIX) || defined(DARWIN) +#if defined(_AIX) || defined(DARWIN) || defined (HPUX) // adjust stack size // For AIX 32-bit compiled applications, the default stacksize is 96 KB, // see . For 64-bit compiled applications, the default stacksize -// is 192 KB. This is too small - see HP-UX note above - -// For MaxOS default stack is 512 KB, which is also too small in 2012. +// is 192 KB. This is too small. +// For MacOS default stack is 512 KB (2012). +// For HPUX its 64 KB on PA, 256 KB on Itanium (2015) size_t stack_size; state = pthread_attr_getstacksize(&pattr, &stack_size);