public interface GlobalMemoryAccessor extends ConcurrentMemoryAccessor, ConcurrentHeapMemoryAccessor, ByteAccessStrategy<Object>
The instance of GlobalMemoryAccessor
appropriate to the platform and intended usage
can be retrieved from the GlobalMemoryAccessorRegistry
by supplying the desired
GlobalMemoryAccessorType
, or by directly using the constants
GlobalMemoryAccessorRegistry.MEM
and GlobalMemoryAccessorRegistry.MEM
.
This interface also works as a ByteAccessStrategy<Object>
with the semantics matching the
semantics of Unsafe
: when an object is supplied as the "resource", access is relative to
that object's base address; when null
is supplied, a base address of zero is implied, i.e.,
the supplied "offset" is treated as the absolute address in CPU's native address space.
Modifier and Type | Field and Description |
---|---|
static int |
MEM_COPY_THRESHOLD
Maximum size of a block of memory to copy in a single low-level memory-copying
operation.
|
ARRAY_BOOLEAN_BASE_OFFSET, ARRAY_BOOLEAN_INDEX_SCALE, ARRAY_BYTE_BASE_OFFSET, ARRAY_BYTE_INDEX_SCALE, ARRAY_CHAR_BASE_OFFSET, ARRAY_CHAR_INDEX_SCALE, ARRAY_DOUBLE_BASE_OFFSET, ARRAY_DOUBLE_INDEX_SCALE, ARRAY_FLOAT_BASE_OFFSET, ARRAY_FLOAT_INDEX_SCALE, ARRAY_INT_BASE_OFFSET, ARRAY_INT_INDEX_SCALE, ARRAY_LONG_BASE_OFFSET, ARRAY_LONG_INDEX_SCALE, ARRAY_OBJECT_BASE_OFFSET, ARRAY_OBJECT_INDEX_SCALE, ARRAY_SHORT_BASE_OFFSET, ARRAY_SHORT_INDEX_SCALE
compareAndSwapInt, compareAndSwapLong, compareAndSwapObject, getBooleanVolatile, getByteVolatile, getCharVolatile, getDoubleVolatile, getFloatVolatile, getIntVolatile, getLongVolatile, getShortVolatile, putBooleanVolatile, putByteVolatile, putCharVolatile, putDoubleVolatile, putFloatVolatile, putIntVolatile, putLongVolatile, putOrderedInt, putOrderedLong, putOrderedObject, putShortVolatile
copyFromByteArray, copyMemory, copyToByteArray, getBoolean, getByte, getChar, getDouble, getFloat, getInt, getLong, getShort, isBigEndian, putBoolean, putByte, putChar, putDouble, putFloat, putInt, putLong, putShort, setMemory
compareAndSwapInt, compareAndSwapLong, compareAndSwapObject, getBooleanVolatile, getByteVolatile, getCharVolatile, getDoubleVolatile, getFloatVolatile, getIntVolatile, getLongVolatile, getObjectVolatile, getShortVolatile, putBooleanVolatile, putByteVolatile, putCharVolatile, putDoubleVolatile, putFloatVolatile, putIntVolatile, putLongVolatile, putObjectVolatile, putOrderedInt, putOrderedLong, putOrderedObject, putShortVolatile
arrayBaseOffset, arrayIndexScale, copyMemory, getBoolean, getByte, getChar, getDouble, getFloat, getInt, getLong, getObject, getShort, objectFieldOffset, putBoolean, putByte, putChar, putDouble, putFloat, putInt, putLong, putObject, putShort
static final int MEM_COPY_THRESHOLD
Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.