mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* cont.c (fiber_setcontext): Fix last commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fadc3a8bbc
commit
26c48195af
2 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
1
cont.c
1
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;
|
||||
|
|
Loading…
Reference in a new issue