public class LinuxImageHeapProvider extends AbstractImageHeapProvider
| 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 heapBase)
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.
|
getImageHeapAddressSpaceSize, getImageHeapSizeInFileclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetpublic static final CGlobalData<org.graalvm.word.Pointer> MAGIC
public boolean guaranteesHeapPreferredAddressSpaceAlignment()
ImageHeapProviderCommittedMemoryProvider, will always ensure a heap address space alignment of
Heap.getPreferredAddressSpaceAlignment() at image runtime.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)
ImageHeapProviderreservedAddressSpace - 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 heapBase)
ImageHeapProviderImageHeapProvider.