ruby-changes:20256
From: kosaki <ko1@a...>
Date: Thu, 30 Jun 2011 02:55:09 +0900 (JST)
Subject: [ruby-changes:20256] kosaki:r32304 (trunk): * thread.c (rb_threadptr_execute_interrupts_common): remove
kosaki 2011-06-30 02:55:03 +0900 (Thu, 30 Jun 2011) New Revision: 32304 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32304 Log: * thread.c (rb_threadptr_execute_interrupts_common): remove meaningless native_thread_yield(). It never close a race. Modified files: trunk/ChangeLog trunk/thread.c Index: ChangeLog =================================================================== --- ChangeLog (revision 32303) +++ ChangeLog (revision 32304) @@ -1,3 +1,8 @@ +Thu Jun 30 02:53:26 2011 KOSAKI Motohiro <kosaki.motohiro@g...> + + * thread.c (rb_threadptr_execute_interrupts_common): remove + meaningless native_thread_yield(). It never close a race. + Thu Jun 30 02:41:47 2011 KOSAKI Motohiro <kosaki.motohiro@g...> * thread.c (rb_thread_schedule_limits): minor optimization. Index: thread.c =================================================================== --- thread.c (revision 32303) +++ thread.c (revision 32304) @@ -1263,10 +1263,6 @@ { rb_atomic_t interrupt; - if (GET_VM()->main_thread == th) { - while (rb_signal_buff_size() && !th->exec_signal) native_thread_yield(); - } - if (th->raised_flag) return; while ((interrupt = ATOMIC_EXCHANGE(th->interrupt_flag, 0)) != 0) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/