public abstract class AbstractCommittedMemoryProvider extends Object implements CommittedMemoryProvider
CommittedMemoryProvider.Access
UNALIGNED
Constructor and Description |
---|
AbstractCommittedMemoryProvider() |
Modifier and Type | Method and Description |
---|---|
boolean |
guaranteesHeapPreferredAddressSpaceAlignment()
Returns whether this provider will always guarantee a heap address space alignment of
Heap.getPreferredAddressSpaceAlignment() at image runtime, which may also depend on
ImageHeapProvider.guaranteesHeapPreferredAddressSpaceAlignment() . |
boolean |
protect(org.graalvm.word.PointerBase start,
org.graalvm.word.UnsignedWord nbytes,
EnumSet<CommittedMemoryProvider.Access> accessFlags)
Change access permissions for a block of committed memory that was allocated with
CommittedMemoryProvider.allocate(org.graalvm.word.UnsignedWord, org.graalvm.word.UnsignedWord, boolean) . |
protected static int |
protectSingleIsolateImageHeap() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
afterGarbageCollection, allocate, beforeGarbageCollection, free, get, getGranularity, initialize, tearDown
public boolean guaranteesHeapPreferredAddressSpaceAlignment()
CommittedMemoryProvider
Heap.getPreferredAddressSpaceAlignment()
at image runtime, which may also depend on
ImageHeapProvider.guaranteesHeapPreferredAddressSpaceAlignment()
.guaranteesHeapPreferredAddressSpaceAlignment
in interface CommittedMemoryProvider
protected static int protectSingleIsolateImageHeap()
public boolean protect(org.graalvm.word.PointerBase start, org.graalvm.word.UnsignedWord nbytes, EnumSet<CommittedMemoryProvider.Access> accessFlags)
CommittedMemoryProvider
CommittedMemoryProvider.allocate(org.graalvm.word.UnsignedWord, org.graalvm.word.UnsignedWord, boolean)
.protect
in interface CommittedMemoryProvider
start
- The start of the address range to be protected, which must be a multiple of the
granularity.nbytes
- The size in bytes of the address range to be protected, which will be rounded
up to a multiple of the granularity.accessFlags
- The modes in which the memory is permitted to be accessed, see CommittedMemoryProvider.Access
.