ruby-changes:32592
From: nobu <ko1@a...>
Date: Tue, 21 Jan 2014 16:26:52 +0900 (JST)
Subject: [ruby-changes:32592] nobu:r44671 (trunk): thread_pthread.c: expand timer thread stack size
nobu 2014-01-21 16:26:47 +0900 (Tue, 21 Jan 2014) New Revision: 44671 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44671 Log: 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] Modified files: trunk/ChangeLog trunk/thread_pthread.c Index: ChangeLog =================================================================== --- ChangeLog (revision 44670) +++ ChangeLog (revision 44671) @@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Tue Jan 21 16:26:44 2014 Nobuyoshi Nakada <nobu@r...> + + * 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] + Tue Jan 21 04:31:23 2014 Tanaka Akira <akr@f...> * ext/socket/option.c: Use "int" for IP_MULTICAST_LOOP and Index: thread_pthread.c =================================================================== --- thread_pthread.c (revision 44670) +++ thread_pthread.c (revision 44671) @@ -1480,9 +1480,9 @@ rb_thread_create_timer_thread(void) https://github.com/ruby/ruby/blob/trunk/thread_pthread.c#L1480 } # 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/