diff options
Diffstat (limited to 'thread_pthread.c')
-rw-r--r-- | thread_pthread.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/thread_pthread.c b/thread_pthread.c index 5d24029c56..be5bbb3947 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -616,6 +616,7 @@ ruby_init_stack(volatile VALUE *addr size_t space = 0; #if defined(STACKADDR_AVAILABLE) void* stackaddr; + STACK_GROW_DIR_DETECTION; get_stack(&stackaddr, &size); space = STACK_DIR_UPPER((char *)addr - (char *)stackaddr, (char *)stackaddr - (char *)addr); #elif defined(HAVE_GETRLIMIT) |