From 1165304a5dc5c4a2b8fce26f09e9bbeb8f0b43fc Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 8 May 2008 22:48:38 +0000 Subject: [PATCH] * cont.c (cont_restore_0): dynamic stack direction code should be consistent with static one. [ruby-talk:301152] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ cont.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8cebaf799d..643291e67b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri May 9 07:47:07 2008 Yukihiro Matsumoto + + * cont.c (cont_restore_0): dynamic stack direction code should be + consistent with static one. [ruby-talk:301152] + Fri May 9 00:03:50 2008 Yukihiro Matsumoto * parse.y (arg): operator assignment "a += b rescue c" should be diff --git a/cont.c b/cont.c index 02264f8395..57b95feb9f 100644 --- a/cont.c +++ b/cont.c @@ -323,7 +323,7 @@ cont_restore_0(rb_context_t *cont, VALUE *addr_in_prev_frame) #else if (addr_in_prev_frame > &space[0]) { /* Stack grows downward */ - if (addr_in_prev_frame > cont->saved_thread.machine_stack_size) { + if (addr_in_prev_frame > cont->machine_stack_src) { cont_restore_0(cont, &space[0]); } }