ruby-changes:19344
From: kosaki <ko1@a...>
Date: Sat, 30 Apr 2011 00:20:10 +0900 (JST)
Subject: [ruby-changes:19344] Ruby:r31384 (trunk): * thread_pthread.c (gvl_init): fix hangup if GVL_SIMPLE_LOCK=1.
kosaki 2011-04-30 00:20:00 +0900 (Sat, 30 Apr 2011) New Revision: 31384 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31384 Log: * thread_pthread.c (gvl_init): fix hangup if GVL_SIMPLE_LOCK=1. We don't have to call mutex_unlock() before initialize it! Modified files: trunk/ChangeLog trunk/thread_pthread.c Index: ChangeLog =================================================================== --- ChangeLog (revision 31383) +++ ChangeLog (revision 31384) @@ -1,3 +1,8 @@ +Sat Apr 30 00:16:40 2011 KOSAKI Motohiro <kosaki.motohiro@g...> + + * thread_pthread.c (gvl_init): fix hangup if GVL_SIMPLE_LOCK=1. + We don't have to call mutex_unlock() before initialize it! + Fri Apr 29 13:15:15 2011 KOSAKI Motohiro <kosaki.motohiro@g...> * thread_win32.c (native_cond_timedwait): New. r31373 caused Index: thread_pthread.c =================================================================== --- thread_pthread.c (revision 31383) +++ thread_pthread.c (revision 31384) @@ -128,7 +128,7 @@ if (GVL_DEBUG) fprintf(stderr, "gvl init\n"); #if GVL_SIMPLE_LOCK - native_mutex_reinitialize_atfork(&vm->gvl.lock); + native_mutex_initialize(&vm->gvl.lock); #else native_mutex_initialize(&vm->gvl.lock); vm->gvl.waiting_threads = 0; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/