ruby-changes:26767
From: kosaki <ko1@a...>
Date: Tue, 15 Jan 2013 09:36:13 +0900 (JST)
Subject: [ruby-changes:26767] kosaki:r38819 (trunk): * thread_pthread.c (gvl_init): Reset gvl.wait_yield explicitly when
kosaki 2013-01-15 09:32:23 +0900 (Tue, 15 Jan 2013) New Revision: 38819 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38819 Log: * thread_pthread.c (gvl_init): Reset gvl.wait_yield explicitly when fork()ing. Patch by Apollon Oikonomopoulos. Thanks! [Bug #7693][ruby-core:51424] Modified files: trunk/ChangeLog trunk/thread_pthread.c Index: ChangeLog =================================================================== --- ChangeLog (revision 38818) +++ ChangeLog (revision 38819) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Tue Jan 15 09:22:47 2013 KOSAKI Motohiro <kosaki.motohiro@g...> + + * thread_pthread.c (gvl_init): Reset gvl.wait_yield explicitly when + fork()ing. Patch by Apollon Oikonomopoulos. Thanks! + [Bug #7693][ruby-core:51424] + Tue Jan 15 09:27:56 2013 Eric Hodel <drbrain@s...> * doc/syntax/calling_methods.rdoc (Receiver): Added :: as pointed out Index: thread_pthread.c =================================================================== --- thread_pthread.c (revision 38818) +++ thread_pthread.c (revision 38819) @@ -155,6 +155,7 @@ gvl_init(rb_vm_t *vm) https://github.com/ruby/ruby/blob/trunk/thread_pthread.c#L155 vm->gvl.acquired = 0; vm->gvl.waiting = 0; vm->gvl.need_yield = 0; + vm->gvl.wait_yield = 0; } static void -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/