summaryrefslogtreecommitdiff
path: root/thread_pthread.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-10 08:54:38 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-10 08:54:38 +0000
commit8706c00dfd65ae6c78f6fdac3688b224925c8d49 (patch)
tree045bd75ae745457e6c56a6121339f24cdf47b0df /thread_pthread.c
parent068dafd21f664e75bbadf958ad976afeeca45326 (diff)
downloadbundler-8706c00dfd65ae6c78f6fdac3688b224925c8d49.tar.gz
gc.h: IS_STACK_DIR_UPPER
* gc.h (IS_STACK_DIR_UPPER): utility macro. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index 0a37f2fa30..383d41b732 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -1342,7 +1342,7 @@ ruby_stack_overflowed_p(const rb_thread_t *th, const void *addr)
}
size /= 5;
if (size > water_mark) size = water_mark;
- if (STACK_DIR_UPPER(1, 0)) {
+ if (IS_STACK_DIR_UPPER()) {
if (size > ~(size_t)base+1) size = ~(size_t)base+1;
if (addr > base && addr <= (void *)((char *)base + size)) return 1;
}