diff options
author | Michael Widenius <monty@askmonty.org> | 2009-06-30 15:01:29 +0300 |
---|---|---|
committer | Michael Widenius <monty@askmonty.org> | 2009-06-30 15:01:29 +0300 |
commit | f1183fc160b504af3c976d7e1e95e19128b6ecbe (patch) | |
tree | 520c5fbf2495a91144f76928a5b84d1887b4969c /include/my_pthread.h | |
parent | bb55791994deb9677b487e7fcfde233cafbf9dbe (diff) | |
download | mariadb-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.h | 2 |
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 |