8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 00:03:03 +01:00

Default stack size is too small on HPUX - its 64 KB on PA, and 256 KB on Itanium

This commit is contained in:
paulbeach 2015-06-12 08:59:48 +00:00
parent 5f9f96be25
commit b0ea7e23f5

View File

@ -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 <pthread.h>. 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);