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

ruby-changes:26505

From: nagachika <ko1@a...>
Date: Sat, 22 Dec 2012 22:08:38 +0900 (JST)
Subject: [ruby-changes:26505] nagachika:r38556 (trunk): * cont.c (rb_fiber_start): unify conditions.

nagachika	2012-12-22 22:08:24 +0900 (Sat, 22 Dec 2012)

  New Revision: 38556

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

  Log:
    * cont.c (rb_fiber_start): unify conditions.

  Modified files:
    trunk/ChangeLog
    trunk/cont.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 38555)
+++ ChangeLog	(revision 38556)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Dec 22 22:04:58 2012  CHIKANAGA Tomoyuki  <nagachika@r...>
+
+	* cont.c (rb_fiber_start): unify conditions.
+
 Sat Dec 22 21:47:55 2012  KOSAKI Motohiro  <kosaki.motohiro@g...>
 
 	* io.c (rb_io_wait_writable): use rb_thread_check_ints() instead
Index: cont.c
===================================================================
--- cont.c	(revision 38555)
+++ cont.c	(revision 38556)
@@ -1161,10 +1161,7 @@ rb_fiber_start(void) https://github.com/ruby/ruby/blob/trunk/cont.c#L1161
     TH_POP_TAG();
 
     if (state) {
-	if (state == TAG_RAISE) {
-	    rb_threadptr_async_errinfo_enque(th, th->errinfo);
-	}
-	else if (state == TAG_FATAL) {
+	if (state == TAG_RAISE || state == TAG_FATAL) {
 	    rb_threadptr_async_errinfo_enque(th, th->errinfo);
 	}
 	else {

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

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