diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-04 09:19:38 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-04 09:19:38 +0000 |
commit | cc5164adc9a46128ae99c9d05cf0d064339406f5 (patch) | |
tree | 1d250e0b5270ddbdbb59fbb068d0b366c572059e /gc.c | |
parent | 079741af1bbff0e5c02aa9b2ad04732517ef4bac (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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |