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