Commit 74c57a6d authored by joerg@mysql.com's avatar joerg@mysql.com

Provide a default "minimum thread stack size" PTHREAD_STACK_MIN where it is missing.

(Currently, affects only BSD with Linuxthreads)
parent 4015635b
......@@ -76,6 +76,9 @@ int set_stacksize_n_create_thread(pthread_t *thread, pthread_attr_t *attr,
int rc= 0;
#ifndef __WIN__
#ifndef PTHREAD_STACK_MIN
#define PTHREAD_STACK_MIN 32768
#endif
/*
Set stack size to be safe on the platforms with too small
default thread stack.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment