public interface ImageHeapProvider
Modifier and Type | Method and Description |
---|---|
boolean |
canUnmapInsteadOfTearDown(org.graalvm.word.PointerBase heapBase)
Determines whether instead of calling
ImageHeapProvider.tearDown(PointerBase) , a heap instance that
can simply be unmapped. |
static ImageHeapProvider |
get() |
int |
initialize(org.graalvm.word.PointerBase begin,
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.
|
int |
tearDown(org.graalvm.word.PointerBase heapBase)
Disposes an instance of the image heap that was created with this provider.
|
static ImageHeapProvider get()
int initialize(org.graalvm.word.PointerBase begin, org.graalvm.word.UnsignedWord reservedSize, org.graalvm.nativeimage.c.type.WordPointer basePointer, org.graalvm.nativeimage.c.type.WordPointer endPointer)
begin
- If non-null, a specific address where the image heap instance should be created.
If null, the image heap instance is created at an arbitrary address.reservedSize
- If begin
is non-null, the 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
.boolean canUnmapInsteadOfTearDown(org.graalvm.word.PointerBase heapBase)
ImageHeapProvider.tearDown(PointerBase)
, a heap instance that
can simply be unmapped.int tearDown(org.graalvm.word.PointerBase heapBase)