JDK-8005966 : Add missing Unsafe entry points for addAndGet() family
  • Type: Enhancement
  • Component: core-libs
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2013-01-10
  • Updated: 2013-01-10
  • Resolved: 2013-01-10
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
8 b70Fixed
Related Reports
Cloners :  
Description
This is a cloned issue so that we have a libs CR and a hotspot CR.

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)
Comments
http://hg.openjdk.java.net/hsx/hotspot-main/jdk/rev/8cf5b18488d1
10-01-2013