RFR(XS): make shared variables volatile
Zhengyu Gu
zgu at redhat.com
Wed Sep 21 14:40:32 UTC 2016
On 09/21/2016 10:18 AM, Aleksey Shipilev wrote:
> On 09/21/2016 03:24 PM, Zhengyu Gu wrote:
>> This is a simple webrev that makes a few shared variables volatile:
>>
>> http://cr.openjdk.java.net/~zgu/volatile/webrev/
> Wait, why do we have to mark the methods "volatile"? Are we suggesting
> the ShenandoahHeap (receiver) instance should be volatile too?
You are right, they should not.
Updated:
http://cr.openjdk.java.net/~zgu/volatile/webrev.01/
<http://cr.openjdk.java.net/%7Ezgu/volatile/webrev.01/>
Thanks,
-Zhengyu
> Thanks,
> -Aleksey
>
More information about the shenandoah-dev
mailing list