mirror of
https://github.com/corda/corda.git
synced 2025-06-23 09:25:36 +00:00
implement Unsafe.putOrderedLong and putVolatileLong
The former just defers to the latter for now, since it provides strictly weaker guarantees. Thus it's correct to use full volatile-style barriers, though not as efficient as it could be on some architectures.
This commit is contained in:
@ -50,6 +50,10 @@ public final class Unsafe {
|
||||
|
||||
public native long getLongVolatile(Object o, long offset);
|
||||
|
||||
public native long putLongVolatile(Object o, long offset, long x);
|
||||
|
||||
public native long putOrderedLong(Object o, long offset, long x);
|
||||
|
||||
public native void putOrderedInt(Object o, long offset, int x);
|
||||
|
||||
public native Object getObject(Object o, long offset);
|
||||
|
Reference in New Issue
Block a user