summaryrefslogtreecommitdiff
path: root/thread_pthread.c
diff options
context:
space:
mode:
authorkanemoto <kanemoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-11 14:49:36 +0000
committerkanemoto <kanemoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-11 14:49:36 +0000
commit25af5ee57f642f758ea98dd8a7684f0b76c48bc7 (patch)
treec21f08899b791be6a9f7a24ca057e31870a7ec51 /thread_pthread.c
parent53ee1fb47b3b45f79061604491d7dc8c8fe09288 (diff)
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
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c1
1 files changed, 1 insertions, 0 deletions
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)
&reg, &regsiz));
*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