public class UnsafeHolder extends Object
Modifier and Type | Field and Description |
---|---|
static long |
BYTE_ARR_OFF |
Constructor and Description |
---|
UnsafeHolder() |
Modifier and Type | Method and Description |
---|---|
static long |
allocateMemory(long size) |
static boolean |
compareAndSwapInt(Object instance,
long offset,
int expected,
int newValue) |
static boolean |
compareAndSwapLong(Object instance,
long offset,
long expected,
long newValue) |
static boolean |
compareAndSwapObject(Object instance,
long offset,
Object expected,
Object newValue) |
static void |
copyByteArrayFromMemory(byte[] destination,
long address,
int length) |
static void |
copyByteArrayToMemory(byte[] data,
long address,
int length) |
static void |
freeFromMemory(long address) |
static int |
getByte(long address) |
static int |
getIntVolatile(Object instance,
long offset) |
static Object |
getObjectVolatile(Object instance,
long offset) |
static boolean |
isAvailable() |
static long |
objectFieldOffset(Field field) |
static void |
putByte(long address,
byte b) |
static void |
putIntVolatile(Object instance,
long offset,
int newValue) |
static void |
putObjectVolatile(Object instance,
long offset,
Object newValue) |
static long |
reallocateMemory(long oldAddress,
long size) |
public static boolean isAvailable()
public static long objectFieldOffset(Field field)
public static void putObjectVolatile(Object instance, long offset, Object newValue)
public static boolean compareAndSwapObject(Object instance, long offset, Object expected, Object newValue)
public static int getIntVolatile(Object instance, long offset)
public static void putIntVolatile(Object instance, long offset, int newValue)
public static boolean compareAndSwapInt(Object instance, long offset, int expected, int newValue)
public static boolean compareAndSwapLong(Object instance, long offset, long expected, long newValue)
public static long allocateMemory(long size)
public static long reallocateMemory(long oldAddress, long size)
public static void copyByteArrayToMemory(byte[] data, long address, int length)
public static void copyByteArrayFromMemory(byte[] destination, long address, int length)
public static void freeFromMemory(long address)
public static void putByte(long address, byte b)
public static int getByte(long address)
Copyright © GigaSpaces.