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

ruby-changes:35483

From: normal <ko1@a...>
Date: Sat, 13 Sep 2014 06:34:35 +0900 (JST)
Subject: [ruby-changes:35483] normal:r47565 (trunk): vm.c (thread_alloc): remove needless volatile

normal	2014-09-13 06:34:25 +0900 (Sat, 13 Sep 2014)

  New Revision: 47565

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

  Log:
    vm.c (thread_alloc): remove needless volatile
    
    If we needed a volatile there, every other alloc function would need it.
    There is nothing special I can see about thread_alloc which would
    justify it.

  Modified files:
    trunk/ChangeLog
    trunk/vm.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 47564)
+++ ChangeLog	(revision 47565)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Sep 13 06:31:23 2014  Eric Wong  <e@8...>
+
+	* vm.c (thread_alloc): remove needless volatile
+
 Sat Sep 13 06:13:55 2014  Eric Wong  <e@8...>
 
 	* proc.c (proc_free): remove, use RUBY_TYPED_DEFAULT_FREE
Index: vm.c
===================================================================
--- vm.c	(revision 47564)
+++ vm.c	(revision 47565)
@@ -2121,7 +2121,7 @@ rb_obj_is_thread(VALUE obj) https://github.com/ruby/ruby/blob/trunk/vm.c#L2121
 static VALUE
 thread_alloc(VALUE klass)
 {
-    VALUE volatile obj;
+    VALUE obj;
     rb_thread_t *th;
     obj = TypedData_Make_Struct(klass, rb_thread_t, &thread_data_type, th);
 

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

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