mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 04: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:
parent
5f9f96be25
commit
b0ea7e23f5
@ -181,14 +181,14 @@ void ThreadStart::start(ThreadEntryPoint* routine,
|
|||||||
if (state)
|
if (state)
|
||||||
Firebird::system_call_failed::raise("pthread_attr_init", 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
|
// adjust stack size
|
||||||
|
|
||||||
// For AIX 32-bit compiled applications, the default stacksize is 96 KB,
|
// For AIX 32-bit compiled applications, the default stacksize is 96 KB,
|
||||||
// see <pthread.h>. For 64-bit compiled applications, the default stacksize
|
// see <pthread.h>. For 64-bit compiled applications, the default stacksize
|
||||||
// is 192 KB. This is too small - see HP-UX note above
|
// is 192 KB. This is too small.
|
||||||
|
// For MacOS default stack is 512 KB (2012).
|
||||||
// For MaxOS default stack is 512 KB, which is also too small in 2012.
|
// For HPUX its 64 KB on PA, 256 KB on Itanium (2015)
|
||||||
|
|
||||||
size_t stack_size;
|
size_t stack_size;
|
||||||
state = pthread_attr_getstacksize(&pattr, &stack_size);
|
state = pthread_attr_getstacksize(&pattr, &stack_size);
|
||||||
|
Loading…
Reference in New Issue
Block a user