From 89cc2aef81289d41de7971e84ade189140ea8672 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 8 May 2010 16:15:20 +0000 Subject: * cont.c (stackgrowdirection): removed duplicated code, use STACK_UPPER macro instead. * gc.h (STACK_DIR_UPPER): moved from thread_pthread.c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread_pthread.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'thread_pthread.c') diff --git a/thread_pthread.c b/thread_pthread.c index e6295db3cb..af56f01507 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -185,14 +185,6 @@ native_thread_destroy(rb_thread_t *th) #define USE_THREAD_CACHE 0 -#if STACK_GROW_DIRECTION -#define STACK_GROW_DIR_DETECTION -#define STACK_DIR_UPPER(a,b) STACK_UPPER(0, a, b) -#else -#define STACK_GROW_DIR_DETECTION VALUE stack_grow_dir_detection -#define STACK_DIR_UPPER(a,b) STACK_UPPER(&stack_grow_dir_detection, a, b) -#endif - #if defined HAVE_PTHREAD_GETATTR_NP || defined HAVE_PTHREAD_ATTR_GET_NP #define STACKADDR_AVAILABLE 1 #elif defined HAVE_PTHREAD_GET_STACKADDR_NP && defined HAVE_PTHREAD_GET_STACKSIZE_NP -- cgit v1.2.3