ClassValue perf?

Aleksey Shipilev aleksey.shipilev at oracle.com
Mon May 30 17:47:41 UTC 2016


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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://mail.openjdk.java.net/pipermail/mlvm-dev/attachments/20160530/9c3e0286/signature-0001.asc>


More information about the mlvm-dev mailing list