public class CopyingImageHeapProvider extends Object implements ImageHeapProvider
| Constructor and Description |
|---|
CopyingImageHeapProvider() |
| 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, waitgetpublic 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)
ImageHeapProviderinitialize in interface ImageHeapProviderbegin - 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)
ImageHeapProviderImageHeapProvider.tearDown(PointerBase), a heap instance that
can simply be unmapped.canUnmapInsteadOfTearDown in interface ImageHeapProviderpublic int tearDown(org.graalvm.word.PointerBase heapBase)
ImageHeapProvidertearDown in interface ImageHeapProvider