public final class UnsafeAccess extends Object
Unsafe class for direct memory operations.| Modifier and Type | Field and Description |
|---|---|
static int |
ARRAY_BYTE_BASE_OFFSET
Byte array base offset.
|
static boolean |
MEMSET_HACK_REQUIRED
Indicates that a special sequence of instructions must be used instead of simply calling
Unsafe.setMemory(Object, long, long, byte) in order to trick the JIT into calling the memset
function. |
static int |
MEMSET_HACK_THRESHOLD
A minimal size in bytes for the
Unsafe.setMemory(Object, long, long, byte) after which JIT could decide
to use the memset. |
static sun.misc.Unsafe |
UNSAFE
Reference to the
Unsafe instance. |
public static final sun.misc.Unsafe UNSAFE
Unsafe instance.public static final int ARRAY_BYTE_BASE_OFFSET
public static final boolean MEMSET_HACK_REQUIRED
Unsafe.setMemory(Object, long, long, byte) in order to trick the JIT into calling the memset
function.public static final int MEMSET_HACK_THRESHOLD
Unsafe.setMemory(Object, long, long, byte) after which JIT could decide
to use the memset.MEMSET_HACK_REQUIREDCopyright © 2014-2021 Real Logic Limited. All Rights Reserved.