From 26c48195afc911ed45ae2db72dc68d7373e4504e Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 6 May 2010 09:13:54 +0000 Subject: [PATCH] * cont.c (fiber_setcontext): Fix last commit. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ cont.c | 1 + 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 902a80b433..a178f3bd89 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu May 6 18:12:43 2010 Koichi Sasada + + * cont.c (fiber_setcontext): Fix last commit. + Thu May 6 17:16:42 2010 Nobuyoshi Nakada * time.c (rb_localtime_r2): get rid of infinite loop bug of diff --git a/cont.c b/cont.c index dcbae54584..41519fb048 100644 --- a/cont.c +++ b/cont.c @@ -621,6 +621,7 @@ fiber_setcontext(rb_fiber_t *newfib, rb_fiber_t *oldfib) /* save oldfib's machine stack */ if (oldfib->status != TERMINATED) { + SET_MACHINE_STACK_END(&th->machine_stack_end); switch (stackgrowdirection) { case STACK_GROW_DOWNWARD: oldfib->cont.machine_stack_size = th->machine_stack_start - th->machine_stack_end;