On 05/30/2016 06:59 PM, Peter Levart wrote:
> I also employed get-acquire/put-release memory ordering semantics
> instead of SC (volatile) in hope that it might improve a bit the
> performance on platforms such as PowerPC or ARM, but this can be changed
> back to SC if anyone gets scared of it :-)

Revert, you're playing with fire here. Your _default_ modus operandi
should be "scared" when dealing with concurrency. The correctness with
acq/rel should be proven separately, and not by empirical testing. There
is a reason why putOrdered is not used everywhere.

Thanks,
-Aleksey


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
mlvm-dev mailing list
mlvm-dev@openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev

Reply via email to