public final class UnsafeAccess
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static sun.misc.Unsafe |
UNSAFE |
Constructor and Description |
---|
UnsafeAccess() |
Modifier and Type | Method and Description |
---|---|
static boolean |
compareAndSwapInt(java.lang.Object obj,
long offset,
int expected,
int newValue) |
static int |
getAndAddInt(java.lang.Object obj,
long offset,
int n) |
static int |
getAndIncrementInt(java.lang.Object obj,
long offset) |
static int |
getAndSetInt(java.lang.Object obj,
long offset,
int newValue) |
static boolean |
isUnsafeAvailable() |
public static final boolean isUnsafeAvailable()
public static int getAndIncrementInt(java.lang.Object obj, long offset)
public static int getAndAddInt(java.lang.Object obj, long offset, int n)
public static int getAndSetInt(java.lang.Object obj, long offset, int newValue)
public static boolean compareAndSwapInt(java.lang.Object obj, long offset, int expected, int newValue)