RFR(M): 8080289: Intermediate writes in a loop not eliminated by optimizer

Roland Westrelin roland.westrelin at oracle.com
Tue Jun 23 10:50:12 UTC 2015


>> What about
>> 
>> volatile int y;
>> volatile int x;
>> 
>> y=1
>> x=1
>> y=2
>> 
>> transformed to:
>> 
>> x=1
>> y=2
>> 
>> ?
> 
> I think this is not allowed, since operations over "x" get tied up in
> the synchronization order.

Thanks. Then for support_IRIW_for_not_multiple_copy_atomic_cpu true, I don’t see how incorrect reordering is prevented.

Roland.


More information about the hotspot-compiler-dev mailing list