ruby-changes:17452
From: nobu <ko1@a...>
Date: Tue, 12 Oct 2010 22:25:27 +0900 (JST)
Subject: [ruby-changes:17452] Ruby:r29457 (trunk): * cont.c (fiber_setcontext): missing variable definition.
nobu 2010-10-12 22:18:21 +0900 (Tue, 12 Oct 2010) New Revision: 29457 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=29457 Log: * cont.c (fiber_setcontext): missing variable definition. Modified files: trunk/ChangeLog trunk/cont.c Index: ChangeLog =================================================================== --- ChangeLog (revision 29456) +++ ChangeLog (revision 29457) @@ -1,3 +1,7 @@ +Tue Oct 12 22:18:15 2010 Nobuyoshi Nakada <nobu@r...> + + * cont.c (fiber_setcontext): missing variable definition. + Tue Oct 12 19:25:13 2010 NARUSE, Yui <naruse@r...> * error.c (exc_to_s): use OBJ_INFECT. Index: cont.c =================================================================== --- cont.c (revision 29456) +++ cont.c (revision 29457) @@ -498,7 +498,7 @@ VALUE *ptr; SET_MACHINE_STACK_END(&ptr); - th->machine_stack_start = (void*)(((VALUE)ptr & RB_PAGE_MASK) + STACK_UPPER(&ptr, 0, RB_PAGE_SIZE)); + th->machine_stack_start = (void*)(((VALUE)ptr & RB_PAGE_MASK) + STACK_UPPER((void *)&ptr, 0, RB_PAGE_SIZE)); } static VOID CALLBACK @@ -596,6 +596,7 @@ /* save oldfib's machine stack */ if (oldfib->status != TERMINATED) { + STACK_GROW_DIR_DETECTION; SET_MACHINE_STACK_END(&th->machine_stack_end); if (STACK_DIR_UPPER(0, 1)) { oldfib->cont.machine_stack_size = th->machine_stack_start - th->machine_stack_end; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/