Details
-
Enhancement
-
Resolution: Fixed
-
P4
-
None
-
b70
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8005373 | hs25 | Vladimir Kozlov | P4 | Resolved | Fixed | b14 |
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)
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)
Attachments
Issue Links
- backported by
-
JDK-8005373 Add missing Unsafe entry points for addAndGet() family
- Resolved
- is cloned by
-
JDK-8005966 Add missing Unsafe entry points for addAndGet() family
- Resolved
- relates to
-
JDK-7023898 Intrinsify AtomicLongFieldUpdater.getAndIncrement()
- Resolved