diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-08-23 02:21:38 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-08-23 02:21:38 +0000 |
commit | cc8354ba83e311056b2ccf69de0d67aa547afe27 (patch) | |
tree | a9a0db909a944316df22dbaf7d897d19dcd141cf /gc.h | |
parent | f869ed2ff334c78d21aaebf7c359df80593e358c (diff) |
merge revision(s) 35978,36013,36014,36015,36052,36076,36487: [Backport #6898]
* thread_pthread.c (ruby_init_stack): use stack info if possible.
* thread_pthread.c (ruby_init_stack): adjust stack size for offset of
addr from the bottom.
* thread_pthread.c (get_stack): seems stack size does not include
guard size on Mac OS X.
* gc.h (IS_STACK_DIR_UPPER): utility macro.
* thread_pthread.c (get_stack): Linux is the only OS which includes
the size of guard page into the stack size.
* thread_pthread.c (ruby_init_stack): STACK_GROW_DIR_DETECTION is
necessary on platforms with unknown stack direction. [Bug #6761]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@36789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.h')
-rw-r--r-- | gc.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -81,6 +81,7 @@ int ruby_get_stack_grow_direction(volatile VALUE *addr); #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 +#define IS_STACK_DIR_UPPER() STACK_DIR_UPPER(1,0) #if defined __GNUC__ && __GNUC__ >= 4 #pragma GCC visibility push(default) |