1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
normal 2018-06-22 02:43:51 +00:00
parent 97fcb45078
commit 3afb77330f

View file

@ -565,7 +565,7 @@ typedef struct rb_vm_struct {
unsigned int safe_level_: 1; unsigned int safe_level_: 1;
int trace_running; int trace_running;
volatile int sleeper; int sleeper;
/* object management */ /* object management */
VALUE mark_object_ary; VALUE mark_object_ary;