public final class UnsafeAccess extends Object
Unsafe
and convenient utility methods for performing low-level, unsafe
operations.Modifier and Type | Field and Description |
---|---|
static sun.misc.Unsafe |
UNSAFE
The Unsafe instance.
|
Modifier and Type | Method and Description |
---|---|
static long |
objectFieldOffset(Class<?> clazz,
String fieldName)
Returns the location of a given static field.
|