ruby-changes:13052
From: nobu <ko1@a...>
Date: Wed, 9 Sep 2009 10:54:32 +0900 (JST)
Subject: [ruby-changes:13052] Ruby:r24799 (trunk): * cont.c (cont_restore_1, rb_cont_call): should be Fiber.
nobu 2009-09-09 10:51:49 +0900 (Wed, 09 Sep 2009) New Revision: 24799 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24799 Log: * cont.c (cont_restore_1, rb_cont_call): should be Fiber. Modified files: trunk/ChangeLog trunk/cont.c Index: ChangeLog =================================================================== --- ChangeLog (revision 24798) +++ ChangeLog (revision 24799) @@ -1,3 +1,7 @@ +Wed Sep 9 10:51:46 2009 Nobuyoshi Nakada <nobu@r...> + + * cont.c (cont_restore_1, rb_cont_call): should be Fiber. + Wed Sep 9 00:27:29 2009 Nobuyoshi Nakada <nobu@r...> * cont.c (cont_data_type, fiber_data_type): typed. Index: cont.c =================================================================== --- cont.c (revision 24798) +++ cont.c (revision 24799) @@ -356,10 +356,10 @@ fib = th->fiber ? th->fiber : th->root_fiber; if (fib) { - rb_context_t *fcont; - GetContPtr(fib, fcont); - th->stack_size = fcont->saved_thread.stack_size; - th->stack = fcont->saved_thread.stack; + rb_fiber_t *fcont; + GetFiberPtr(fib, fcont); + th->stack_size = fcont->cont.saved_thread.stack_size; + th->stack = fcont->cont.saved_thread.stack; } #ifdef CAPTURE_JUST_VALID_VM_STACK MEMCPY(th->stack, cont->vm_stack, VALUE, cont->vm_stack_slen); @@ -620,8 +620,8 @@ rb_raise(rb_eRuntimeError, "continuation called across trap"); } if (cont->saved_thread.fiber) { - rb_context_t *fcont; - GetContPtr(cont->saved_thread.fiber, fcont); + rb_fiber_t *fcont; + GetFiberPtr(cont->saved_thread.fiber, fcont); if (th->fiber != cont->saved_thread.fiber) { rb_raise(rb_eRuntimeError, "continuation called across fiber"); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/