RFR 8158039 VarHandle float/double field/array access should support CAS/set/add atomics

Paul Sandoz paul.sandoz at oracle.com
Thu Jun 2 15:29:58 UTC 2016

> On 2 Jun 2016, at 14:41, Martin Buchholz <martinrb at google.com> wrote:
> You can find an AtomicDouble in jsr166 CVS
> http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/jsr166e/extra/AtomicDouble.java?view=markup
> and in guava
> https://github.com/google/guava/blob/master/guava/src/com/google/common/util/concurrent/AtomicDouble.java
> I'm still in favor of putting it in openjdk.

Thanks, that is helpful.

What pushed me over the edge in favour was the support for sub-word CAS. The float/double types are lonely and want to join the club as fully signed up members :-)

I will produce another patch with fixes and better docs.


More information about the jdk9-dev mailing list