summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2019-03-05 20:19:50 +0100
committerSergei Golubchik <serg@mariadb.org>2019-03-06 15:12:11 +0100
commit84645366c459b01771223a6d1a20bf7ac38adf48 (patch)
tree44add0ac2edd7be2e1799e330eeae20c3408cd1b /include
parent5ce6fb59a03108cfff11c71ca3f660fb2d8ea11e (diff)
downloadmariadb-git-84645366c459b01771223a6d1a20bf7ac38adf48.tar.gz
ASAN loves stack, give it some
fixes these test failures in ASAN builds (in 10.1 and 10.4): * main.signal_demo3 * main.sp * sys_vars.max_sp_recursion_depth_func * mroonga/storage.foreign_key_delete_existent * mroonga/storage.foreign_key_delete_nonexistent * mroonga/storage.foreign_key_insert_existent * mroonga/storage.foreign_key_update_existent * mroonga/storage.foreign_key_update_nonexistent * mroonga/storage.function_command_auto-escape * mroonga/storage.function_command_select * mroonga/storage.variable_enable_operations_recording_insert
Diffstat (limited to 'include')
-rw-r--r--include/my_pthread.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/my_pthread.h b/include/my_pthread.h
index ae2f912f979..2b3edb73528 100644
--- a/include/my_pthread.h
+++ b/include/my_pthread.h
@@ -734,7 +734,11 @@ extern void my_mutex_end(void);
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 (289*1024L)
+#ifdef __SANITIZE_ADDRESS__
+#define DEFAULT_THREAD_STACK (364*1024L)
+#else
+#define DEFAULT_THREAD_STACK (292*1024L)
+#endif
#endif
#define MY_PTHREAD_LOCK_READ 0