aboutsummaryrefslogtreecommitdiffstats
path: root/thread_pthread.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-21 07:26:47 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-21 07:26:47 +0000
commitad9d4f021129d9ca7270d72370b83a9a5ffec9a0 (patch)
treee75fb22112fad720addd11c38bfaae357048b5b0 /thread_pthread.c
parenta4963d464bd01ae0f487f999dbc9c2b6e39369b9 (diff)
downloadruby-ad9d4f021129d9ca7270d72370b83a9a5ffec9a0.tar.gz
thread_pthread.c: expand timer thread stack size
* thread_pthread.c (rb_thread_create_timer_thread): expand timer thread stack size to get rid of segfault on FreeBSD/powerpc64. based on the patch by Steve Wills at [ruby-core:59923]. [ruby-core:56590] [Bug #8783] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index 76f033771c..36fa73cd94 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -1480,9 +1480,9 @@ rb_thread_create_timer_thread(void)
}
# ifdef PTHREAD_STACK_MIN
{
-# define TIMER_THREAD_STACK_MIN_SIZE (4096 * 3)
+# define TIMER_THREAD_STACK_MIN_SIZE (4096 * 4)
/* Allocate the machine stack for the timer thread
- * at least 12KB (3 pages). FreeBSD 8.2 AMD64 causes
+ * at least 16KB (4 pages). FreeBSD 8.2 AMD64 causes
* machine stack overflow only with PTHREAD_STACK_MIN.
*/
# if TIMER_THREAD_STACK_MIN_SIZE < PTHREAD_STACK_MIN