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

ruby-changes:19568

From: kosaki <ko1@a...>
Date: Tue, 17 May 2011 20:33:30 +0900 (JST)
Subject: [ruby-changes:19568] kosaki:r31609 (trunk): * vm_core.h (rb_thread_struct): add volatile to

kosaki	2011-05-17 20:22:50 +0900 (Tue, 17 May 2011)

  New Revision: 31609

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31609

  Log:
    * vm_core.h (rb_thread_struct): add volatile to
      transition_for_lock because it is not protected by lock.

  Modified files:
    trunk/ChangeLog
    trunk/vm_core.h

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 31608)
+++ ChangeLog	(revision 31609)
@@ -1,3 +1,8 @@
+Tue May 17 20:20:49 2011  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* vm_core.h (rb_thread_struct): add volatile to
+	  transition_for_lock because it is not protected by lock.
+
 Tue May 17 20:08:53 2011  NAKAMURA Usaku  <usa@r...>
 
 	* LEGAL (missing/{elf,tgamma,lgamma_r}.c): they've been replaced by
Index: vm_core.h
===================================================================
--- vm_core.h	(revision 31608)
+++ vm_core.h	(revision 31609)
@@ -435,7 +435,7 @@
     struct rb_unblock_callback unblock;
     VALUE locking_mutex;
     struct rb_mutex_struct *keeping_mutexes;
-    int transition_for_lock;
+    volatile int transition_for_lock;
 
     struct rb_vm_tag *tag;
     struct rb_vm_protect_tag *protect_tag;

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

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