From 25af5ee57f642f758ea98dd8a7684f0b76c48bc7 Mon Sep 17 00:00:00 2001 From: kanemoto Date: Mon, 11 Jul 2011 14:49:36 +0000 Subject: thread_pthread.c (get_stack): need to adjust stack addr for [Bug #1813] on AIX. backported r32511 from trunk. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ thread_pthread.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index b2d39ba5ed..fddec25798 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Jul 11 23:47:00 2011 Yutaka Kanemoto + + * thread_pthread.c (get_stack): need to adjust stack addr for + [Bug #1813] on AIX. backported r32511 from trunk. + Mon Jul 11 15:17:03 2011 NAKAMURA Usaku * numeric.c (rb_num2ull): use FIX2LONG instead of FIX2ULONG. see diff --git a/thread_pthread.c b/thread_pthread.c index 0cdc220fba..7c486ab11f 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -518,6 +518,7 @@ get_stack(void **addr, size_t *size) ®, ®siz)); *addr = thinfo.__pi_stackaddr; *size = thinfo.__pi_stacksize; + STACK_DIR_UPPER((void)0, (void)(*addr = (char *)*addr + *size)); #else #error STACKADDR_AVAILABLE is defined but not implemented. #endif -- cgit v1.2.3