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

ruby-changes:51503

From: normal <ko1@a...>
Date: Fri, 22 Jun 2018 11:43:57 +0900 (JST)
Subject: [ruby-changes:51503] normal:r63713 (trunk): vm_core.h (rb_vm_t): make sleeper non-volatile

normal	2018-06-22 11:43:51 +0900 (Fri, 22 Jun 2018)

  New Revision: 63713

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

  Log:
    vm_core.h (rb_vm_t): make sleeper non-volatile
    
    vm->sleeper is never modified in signal handlers or without GVL,
    so there's no need for volatile hocus-pocus.

  Modified files:
    trunk/vm_core.h
Index: vm_core.h
===================================================================
--- vm_core.h	(revision 63712)
+++ vm_core.h	(revision 63713)
@@ -565,7 +565,7 @@ typedef struct rb_vm_struct { https://github.com/ruby/ruby/blob/trunk/vm_core.h#L565
     unsigned int safe_level_: 1;
 
     int trace_running;
-    volatile int sleeper;
+    int sleeper;
 
     /* object management */
     VALUE mark_object_ary;

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

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