From d647b5358ed5c7f07b3aa500b40297568a882975 Mon Sep 17 00:00:00 2001 From: kosaki Date: Mon, 27 Jun 2011 12:59:08 +0000 Subject: * thread_pthread.h (rb_global_vm_lock_struct): add volatile to gvl->waiting. now thread_timer() access it w/o lock. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread_pthread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'thread_pthread.h') diff --git a/thread_pthread.h b/thread_pthread.h index e693fba299..f180a79d27 100644 --- a/thread_pthread.h +++ b/thread_pthread.h @@ -38,7 +38,7 @@ typedef struct rb_global_vm_lock_struct { pthread_mutex_t lock; /* slow path */ - unsigned long waiting; + volatile unsigned long waiting; rb_thread_cond_t cond; /* yield */ -- cgit v1.2.3