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:
parent
a4963d464b
commit
ad9d4f0211
2 changed files with 9 additions and 2 deletions
|
@ -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>
|
||||
|
||||
* ext/socket/option.c: Use "int" for IP_MULTICAST_LOOP and
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue