From ad9d4f021129d9ca7270d72370b83a9a5ffec9a0 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 21 Jan 2014 07:26:47 +0000 Subject: 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 --- thread_pthread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'thread_pthread.c') 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 -- cgit v1.2.3