JDK-8004330 : Add missing Unsafe entry points for addAndGet() family
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2012-12-03
  • Updated: 2013-04-30
  • Resolved: 2012-12-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 8 Other
8 b70Fixed hs25Fixed
Related Reports
Cloners :  
Relates :  
Description
This is missing from JDK-7023898. 

The VM support for intrinsifying Unsafe calls in question is there, but no methods is exposed in Unsafe to link against. Should add:

public int getAndAddInt(Object o, long offset, int delta) 
public long getAndAddLong(Object o, long offset, long delta)
public long getAndAddLong(Object o, long offset, long delta) 
public int getAndSetInt(Object o, long offset, int x) 
public long getAndSetLong(Object o, long offset, long x) 
public Object getAndSetObject(Object o, long offset, Object x)