JDK-8158039 : VarHandle float/double field/array access should support CAS/set/add atomics
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.lang.invoke
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-05-27
  • Updated: 2017-05-17
  • Resolved: 2016-06-21
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b127Fixed
Related Reports
Relates :  
Description
A VarHandle covering a float/double field or array can support CAS/set/add atomics by converting to/from raw bits.

With JDK-8157726 filling out subword CAS/set/add for boolean, byte and short. This completes the support for all primitive types and the reference type.

Comments
CCC approved with comments to clarify behaviour for NaN values and +0.0/-0.0
15-06-2016

Patches based off those for JDK-8157726: http://cr.openjdk.java.net/~psandoz/jdk9/JDK-8158039-float-double-field-array-cas.jdk/webrev/ http://cr.openjdk.java.net/~psandoz/jdk9/JDK-8158039-float-double-field-array-cas.hotspot/webrev/
27-05-2016