summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEugene Kosov <claprix@yandex.ru>2020-03-23 16:47:43 +0300
committerEugene Kosov <claprix@yandex.ru>2020-03-23 17:42:57 +0300
commita7cbce06d432cbcb88e071731089aacfd41750fd (patch)
tree52e0995a113d51006a2dea5e6a1020cb0e49086d /include
parentfb74de97287c1a3db718226a73c01f6334bf2877 (diff)
downloadmariadb-git-a7cbce06d432cbcb88e071731089aacfd41750fd.tar.gz
unoptimized -fsanitize=undefined build on clang requires more stack space
Diffstat (limited to 'include')
-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 2b3f4f14ea3..72647b6c9f7 100644
--- a/include/my_pthread.h
+++ b/include/my_pthread.h
@@ -693,7 +693,7 @@ 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.
*/
-#ifdef __SANITIZE_ADDRESS__
+#if defined(__SANITIZE_ADDRESS__) || defined(WITH_UBSAN)
#define DEFAULT_THREAD_STACK (364*1024L)
#else
#define DEFAULT_THREAD_STACK (292*1024L)