summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-04 09:19:38 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-04 09:19:38 +0000
commitcc5164adc9a46128ae99c9d05cf0d064339406f5 (patch)
tree1d250e0b5270ddbdbb59fbb068d0b366c572059e /gc.c
parent079741af1bbff0e5c02aa9b2ad04732517ef4bac (diff)
merges r22659 from trunk into ruby_1_9_1.
-- * gc.c (ruby_get_stack_grow_direction): no needs to use thread here, and not initialized yet. [ruby-core:22439] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@22748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gc.c b/gc.c
index 002abb3bcb..c9e9a520dd 100644
--- a/gc.c
+++ b/gc.c
@@ -1102,10 +1102,10 @@ int ruby_stack_grow_direction;
int
ruby_get_stack_grow_direction(VALUE *addr)
{
- rb_thread_t *th = GET_THREAD();
- SET_STACK_END;
+ VALUE *end;
+ SET_MACHINE_STACK_END(&end);
- if (STACK_END > addr) return ruby_stack_grow_direction = 1;
+ if (end > addr) return ruby_stack_grow_direction = 1;
return ruby_stack_grow_direction = -1;
}
#endif