summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-06 09:13:54 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-06 09:13:54 +0000
commit26c48195afc911ed45ae2db72dc68d7373e4504e (patch)
tree69988f888b063994b6e53b5017ca61b64777dd39
parentfadc3a8bbc83b541a7b345a757e06cfe3585b8e4 (diff)
* cont.c (fiber_setcontext): Fix last commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--cont.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 902a80b433a..a178f3bd89c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Thu May 6 18:12:43 2010 Koichi Sasada <ko1@atdot.net>
+
+ * cont.c (fiber_setcontext): Fix last commit.
+
Thu May 6 17:16:42 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* time.c (rb_localtime_r2): get rid of infinite loop bug of
diff --git a/cont.c b/cont.c
index dcbae545845..41519fb048b 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;