public class LinuxImageHeapProvider extends Object implements ImageHeapProvider
Modifier and Type | Field and Description |
---|---|
static CGlobalData<org.graalvm.word.Pointer> |
MAGIC
Magic value to verify that a located image file matches our loaded image.
|
Constructor and Description |
---|
LinuxImageHeapProvider() |
Modifier and Type | Method and Description |
---|---|
int |
freeImageHeap(org.graalvm.word.PointerBase imageHeap)
Disposes an instance of the image heap that was created with this provider.
|
boolean |
guaranteesHeapPreferredAddressSpaceAlignment()
Returns whether this provider, when not already supplied a reserved address space by
CommittedMemoryProvider , will always ensure a heap address space alignment of
Heap.getPreferredAddressSpaceAlignment() at image runtime. |
int |
initialize(org.graalvm.word.Pointer reservedAddressSpace,
org.graalvm.word.UnsignedWord reservedSize,
org.graalvm.nativeimage.c.type.WordPointer basePointer,
org.graalvm.nativeimage.c.type.WordPointer endPointer)
Creates a new instance of the image heap.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get
public static final CGlobalData<org.graalvm.word.Pointer> MAGIC
public boolean guaranteesHeapPreferredAddressSpaceAlignment()
ImageHeapProvider
CommittedMemoryProvider
, will always ensure a heap address space alignment of
Heap.getPreferredAddressSpaceAlignment()
at image runtime.guaranteesHeapPreferredAddressSpaceAlignment
in interface ImageHeapProvider
public int initialize(org.graalvm.word.Pointer reservedAddressSpace, org.graalvm.word.UnsignedWord reservedSize, org.graalvm.nativeimage.c.type.WordPointer basePointer, org.graalvm.nativeimage.c.type.WordPointer endPointer)
ImageHeapProvider
initialize
in interface ImageHeapProvider
reservedAddressSpace
- If non-null, this specifies the address of a contiguous block of
memory in which the image heap and the Java heap should be placed. If null, the
ImageHeapProvider
is responsible for allocating sufficient memory for the
image heap at an arbitrary address.reservedSize
- If reservedAddressSpace
is non-null, the number of reserved bytes
at that address.basePointer
- An address where a pointer to the start address of the image heap instance
will be written. Must not be null.endPointer
- An address where a pointer to the end of the image heap instance will be
written. May be null if this value is not required.CEntryPointErrors
.public int freeImageHeap(org.graalvm.word.PointerBase imageHeap)
ImageHeapProvider
ImageHeapProvider
.freeImageHeap
in interface ImageHeapProvider