mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 21:12:26 +01:00
Allow DEFAULT_THREAD_STACK to be set via -DDEFAULT_THREAD_STACK=... so our
official binary builds for Linux that are built against a static glibc with a 128k thread stack size limit can be compiled with a default that doesn't result in a harmless (but oft-misunderstood) warning message. (Bug #6226)
This commit is contained in:
parent
954d0181ec
commit
c1593ecf66
1 changed files with 2 additions and 0 deletions
|
@ -624,6 +624,7 @@ extern int pthread_dummy(int);
|
|||
/* All thread specific variables are in the following struct */
|
||||
|
||||
#define THREAD_NAME_SIZE 10
|
||||
#ifndef DEFAULT_THREAD_STACK
|
||||
#if defined(__ia64__)
|
||||
/*
|
||||
MySQL can survive with 32K, but some glibc libraries require > 128K stack
|
||||
|
@ -633,6 +634,7 @@ extern int pthread_dummy(int);
|
|||
#else
|
||||
#define DEFAULT_THREAD_STACK (192*1024L)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
struct st_my_thread_var
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue