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

ruby-changes:52331

From: normal <ko1@a...>
Date: Sun, 26 Aug 2018 07:14:21 +0900 (JST)
Subject: [ruby-changes:52331] normal:r64539 (trunk): thread_pthread.c (ubf_wakeup_thread): `th' is never NULL

normal	2018-08-26 07:14:14 +0900 (Sun, 26 Aug 2018)

  New Revision: 64539

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

  Log:
    thread_pthread.c (ubf_wakeup_thread): `th' is never NULL

  Modified files:
    trunk/thread_pthread.c
Index: thread_pthread.c
===================================================================
--- thread_pthread.c	(revision 64538)
+++ thread_pthread.c	(revision 64539)
@@ -1315,8 +1315,7 @@ static void https://github.com/ruby/ruby/blob/trunk/thread_pthread.c#L1315
 ubf_wakeup_thread(rb_thread_t *th)
 {
     thread_debug("thread_wait_queue_wakeup (%"PRI_THREAD_ID")\n", thread_id_str(th));
-    if (th)
-	pthread_kill(th->thread_id, SIGVTALRM);
+    pthread_kill(th->thread_id, SIGVTALRM);
 }
 
 static void

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

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