[前][次][番号順一覧][スレッド一覧]

ruby-changes:35885

From: normal <ko1@a...>
Date: Thu, 16 Oct 2014 08:27:15 +0900 (JST)
Subject: [ruby-changes:35885] normal:r47966 (trunk): cont.c: fix build when FIBER_USE_NATIVE is 0

normal	2014-10-16 08:27:01 +0900 (Thu, 16 Oct 2014)

  New Revision: 47966

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47966

  Log:
    cont.c: fix build when FIBER_USE_NATIVE is 0
    
    * cont.c (fiber_store): remove references to nextfib

  Modified files:
    trunk/ChangeLog
    trunk/cont.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 47965)
+++ ChangeLog	(revision 47966)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Oct 16 08:26:08 2014  Eric Wong  <e@8...>
+
+	* cont.c (fiber_store): remove references to nextfib
+	  fix build when FIBER_USE_NATIVE is 0
+
 Thu Oct 16 06:51:35 2014  Knut Franke  <Knut.Franke@g...>
 
 	* vm_core.h: declare rb_fiber_t typedef
Index: cont.c
===================================================================
--- cont.c	(revision 47965)
+++ cont.c	(revision 47966)
@@ -1377,15 +1377,11 @@ fiber_store(rb_fiber_t *next_fib, rb_thr https://github.com/ruby/ruby/blob/trunk/cont.c#L1377
 	/* restored */
 	fib = th->fiber;
 	if (fib->cont.argc == -1) rb_exc_raise(fib->cont.value);
-	if (nextfib->cont.value == Qundef) {
-	    cont_restore_0(nextfib->cont, &nextfib->cont.value);
-	    rb_bug("rb_fiber_resume: unreachable");
-	}
 	return fib->cont.value;
     }
     else {
 	VALUE undef = Qundef;
-	cont_restore_0(nextfib->cont, &undef);
+	cont_restore_0(&fib->cont, &undef);
 	rb_bug("rb_fiber_resume: unreachable");
     }
 #endif /* FIBER_USE_NATIVE */

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]