1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2014-01-21 07:26:47 +00:00
parent a4963d464b
commit ad9d4f0211
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,10 @@
Tue Jan 21 16:26:44 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* 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@fsij.org> Tue Jan 21 04:31:23 2014 Tanaka Akira <akr@fsij.org>
* ext/socket/option.c: Use "int" for IP_MULTICAST_LOOP and * ext/socket/option.c: Use "int" for IP_MULTICAST_LOOP and

View file

@ -1480,9 +1480,9 @@ rb_thread_create_timer_thread(void)
} }
# ifdef PTHREAD_STACK_MIN # 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 /* 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. * machine stack overflow only with PTHREAD_STACK_MIN.
*/ */
# if TIMER_THREAD_STACK_MIN_SIZE < PTHREAD_STACK_MIN # if TIMER_THREAD_STACK_MIN_SIZE < PTHREAD_STACK_MIN