summaryrefslogtreecommitdiff
path: root/include/my_pthread.h
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2009-06-30 15:01:29 +0300
committerMichael Widenius <monty@askmonty.org>2009-06-30 15:01:29 +0300
commitf1183fc160b504af3c976d7e1e95e19128b6ecbe (patch)
tree520c5fbf2495a91144f76928a5b84d1887b4969c /include/my_pthread.h
parentbb55791994deb9677b487e7fcfde233cafbf9dbe (diff)
downloadmariadb-git-f1183fc160b504af3c976d7e1e95e19128b6ecbe.tar.gz
Changed default thread stack to 288K to get better memory missalignment between stacks of different threads (should speed up things) and to get a bit extra safety.
In maria_open(), don't allocate big arrays on stack as this may lead to stack overflow. This fixes a valgrind warning detected by buildbot include/my_pthread.h: Changed default thread stack to 288K to get better memory missalignment between stacks of different threads (should speed up things) and to get a bit extra safety. storage/maria/ma_open.c: In maria_open(), don't allocate big arrays on stack as this may lead to stack overflow.
Diffstat (limited to 'include/my_pthread.h')
-rw-r--r--include/my_pthread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/my_pthread.h b/include/my_pthread.h
index 5b6888cdf24..98d843f54d1 100644
--- a/include/my_pthread.h
+++ b/include/my_pthread.h
@@ -691,7 +691,7 @@ extern void my_mutex_end();
We need to have at least 256K stack to handle calls to myisamchk_init()
with the current number of keys and key parts.
*/
-#define DEFAULT_THREAD_STACK (256*1024L)
+#define DEFAULT_THREAD_STACK (288*1024L)
#endif
#define MY_PTHREAD_LOCK_READ 0