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

ruby-changes:39190

From: normal <ko1@a...>
Date: Fri, 17 Jul 2015 05:26:50 +0900 (JST)
Subject: [ruby-changes:39190] normal:r51271 (trunk): thread.c (mutex_alloc): remove needless volatile

normal	2015-07-17 05:26:32 +0900 (Fri, 17 Jul 2015)

  New Revision: 51271

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

  Log:
    thread.c (mutex_alloc): remove needless volatile
    
    Allocation functions do not do anything non-obvious to the
    compiler, so there's no reason for volatile here.

  Modified files:
    trunk/ChangeLog
    trunk/thread.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 51270)
+++ ChangeLog	(revision 51271)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Jul 16 19:12:30 2015  Eric Wong  <e@8...>
+
+	* thread.c (mutex_alloc): remove needless volatile
+
 Thu Jul 16 22:05:29 2015  Koichi Sasada  <ko1@a...>
 
 	* vm_core.h: constify rb_iseq_t::parent_iseq.
Index: thread.c
===================================================================
--- thread.c	(revision 51270)
+++ thread.c	(revision 51271)
@@ -4189,7 +4189,7 @@ rb_obj_is_mutex(VALUE obj) https://github.com/ruby/ruby/blob/trunk/thread.c#L4189
 static VALUE
 mutex_alloc(VALUE klass)
 {
-    VALUE volatile obj;
+    VALUE obj;
     rb_mutex_t *mutex;
 
     obj = TypedData_Make_Struct(klass, rb_mutex_t, &mutex_data_type, mutex);

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

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