public class DarwinImageHeapProvider extends Object implements ImageHeapProvider
Constructor and Description |
---|
DarwinImageHeapProvider() |
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. |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get
public 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)
ImageHeapProvider
initialize
in interface ImageHeapProvider
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
.public boolean canUnmapInsteadOfTearDown(org.graalvm.word.PointerBase heapBase)
ImageHeapProvider
ImageHeapProvider.tearDown(PointerBase)
, a heap instance that
can simply be unmapped.canUnmapInsteadOfTearDown
in interface ImageHeapProvider
public int tearDown(org.graalvm.word.PointerBase heapBase)
ImageHeapProvider
tearDown
in interface ImageHeapProvider