[ruby-core:60751] Re: volatile usages

From: Eric Wong <normalperson@...>
Date: 2014-02-15 01:53:00 UTC
List: ruby-core #60751
array.c: volatile in rb_ary_each along with the explanation in r32201 is
scaring me :x  If that volatile is needed, then it would also be
necessary in similar functions such as rb_ary_each_with_index and
rb_reverse_each.  Of course, those functions do not use volatile and
seem fine after all these years.

Anways, with r32201, I can understand the need for volatile in cont.c
because of setjmp.  Also, vm_call_cfunc no longer uses volatile, but
its use in rb_ary_each is troubling...

Anyways, I cannot find problems with
Debian clang version 3.0-6.2 (tags/RELEASE_30/final) (based on LLVM 3.0)

In This Thread