From 7535b07425b29a75effa543f51f25ddf7ac3646a Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 11 Jan 2005 10:02:31 +0100 Subject: bug#7765 - ndb startup on 64-bit, increase stack on 64-bit ndb/src/common/portlib/NdbThread.c: Use double stack for 64-bit --- ndb/src/common/portlib/NdbThread.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ndb') diff --git a/ndb/src/common/portlib/NdbThread.c b/ndb/src/common/portlib/NdbThread.c index 69e39994a9c..d4f6617d2f5 100644 --- a/ndb/src/common/portlib/NdbThread.c +++ b/ndb/src/common/portlib/NdbThread.c @@ -54,7 +54,11 @@ struct NdbThread* NdbThread_Create(NDB_THREAD_FUNC *p_thread_func, strnmov(tmpThread->thread_name,p_thread_name,sizeof(tmpThread->thread_name)); pthread_attr_init(&thread_attr); +#if (SIZEOF_CHARP == 8) + pthread_attr_setstacksize(&thread_attr, 2*thread_stack_size); +#else pthread_attr_setstacksize(&thread_attr, thread_stack_size); +#endif #ifdef USE_PTHREAD_EXTRAS /* Guard stack overflow with a 2k databuffer */ pthread_attr_setguardsize(&thread_attr, 2048); -- cgit v1.2.1