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

Vitaly Davidovich vitalyd at gmail.com
Tue Jun 23 14:29:55 UTC 2015


Hi Roland,

So what does the graph look like for this example?

sent from my phone On Jun 23, 2015 6:50 AM, "Roland Westrelin" <roland.westrelin at oracle.com> wrote:

>> 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 supportIRIWfornotmultiplecopyatomiccpu true, I don’t see how incorrect reordering is prevented. Roland. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20150623/ac52401e/attachment.html>



More information about the hotspot-compiler-dev mailing list