From ac397a9eeeb2b4a0716cea77ff2de1ace1203dd9 Mon Sep 17 00:00:00 2001 From: kosaki Date: Sat, 30 Jul 2011 02:22:51 +0000 Subject: [PATCH] * vm_core.h (ALT_STACK_SIZE): use MINSIGSTKSZ*2 instead of SIGSTKSZ*2. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ vm_core.h | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5bb5e7de7a..2807f26887 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sat Jul 30 11:21:55 2011 KOSAKI Motohiro + + * vm_core.h (ALT_STACK_SIZE): use MINSIGSTKSZ*2 instead of SIGSTKSZ*2. + Sat Jul 30 10:39:14 2011 KOSAKI Motohiro * vm.c (th_init): preallocate alternative stack. diff --git a/vm_core.h b/vm_core.h index 5f4e5d47f1..21e7d866c5 100644 --- a/vm_core.h +++ b/vm_core.h @@ -383,8 +383,8 @@ struct rb_unblock_callback { struct rb_mutex_struct; -#ifdef SIGSTKSZ -#define ALT_STACK_SIZE (SIGSTKSZ*2) +#ifdef MINSIGSTKSZ +#define ALT_STACK_SIZE (MINSIGSTKSZ*2) #else #define ALT_STACK_SIZE (4*1024) #endif