summaryrefslogtreecommitdiff
path: root/mysys/my_thr_init.c
diff options
context:
space:
mode:
authorMarc Alff <marc.alff@sun.com>2009-11-17 19:31:40 -0700
committerMarc Alff <marc.alff@sun.com>2009-11-17 19:31:40 -0700
commit244eced1a797f15dd0ebe0a58b6c054c26b4fa28 (patch)
tree23343f6c4530860c422afcfc2c9528a8e335578a /mysys/my_thr_init.c
parent7b9fd341a00636995dc176f86e11f9e90bc0f5c9 (diff)
downloadmariadb-git-244eced1a797f15dd0ebe0a58b6c054c26b4fa28.tar.gz
WL#3230 concurrent hash
Backport from 6.0.14 to 5.6.0 Original code from Sergei Golubchik
Diffstat (limited to 'mysys/my_thr_init.c')
-rw-r--r--mysys/my_thr_init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mysys/my_thr_init.c b/mysys/my_thr_init.c
index b2972faf0f8..ba59c483012 100644
--- a/mysys/my_thr_init.c
+++ b/mysys/my_thr_init.c
@@ -284,6 +284,9 @@ my_bool my_thread_init(void)
pthread_cond_init(&tmp->suspend, NULL);
tmp->init= 1;
+ tmp->stack_ends_here= (char*)&tmp +
+ STACK_DIRECTION * (long)my_thread_stack_size;
+
pthread_mutex_lock(&THR_LOCK_threads);
tmp->id= ++thread_id;
++THR_thread_count;