[concurrency-interest] JDK 9's compareAndSet vs compareAndExchange

Dávid Karnok akarnokd at gmail.com
Fri Sep 23 06:07:25 EDT 2016


>
> Yes, that should happen. But on off-chance inlining breaks, it is a good
> idea to have the accessor methods closer to A*FU/VH fields, so that you
> can reference them directly. This is a common practice for using A*FU
> (and by extension, VHs). Passing things around may run into surprises.
>
>
Thanks. (Too bad the utility method call appears 200+ times in my codebase
along with other similar helper methods).


-- 
Best regards,
David Karnok
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cs.oswego.edu/pipermail/concurrency-interest/attachments/20160923/f6e102cc/attachment-0001.html>


More information about the Concurrency-interest mailing list