diff options
author | unknown <joreland@mysql.com> | 2005-01-11 10:02:31 +0100 |
---|---|---|
committer | unknown <joreland@mysql.com> | 2005-01-11 10:02:31 +0100 |
commit | 7535b07425b29a75effa543f51f25ddf7ac3646a (patch) | |
tree | fa92339028f8991235940f339366e63d06794bce | |
parent | 815f62223aa9892b19916724ca76514cb1d899b2 (diff) | |
download | mariadb-git-7535b07425b29a75effa543f51f25ddf7ac3646a.tar.gz |
bug#7765 - ndb startup on 64-bit, increase stack on 64-bit
ndb/src/common/portlib/NdbThread.c:
Use double stack for 64-bit
-rw-r--r-- | ndb/src/common/portlib/NdbThread.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |