public class OSCommittedMemoryProvider extends AbstractCommittedMemoryProvider
| Modifier and Type | Class and Description |
|---|---|
protected static class |
OSCommittedMemoryProvider.VirtualMemoryTracker |
CommittedMemoryProvider.AccessUNALIGNED| Constructor and Description |
|---|
OSCommittedMemoryProvider() |
| Modifier and Type | Method and Description |
|---|---|
org.graalvm.word.Pointer |
allocate(org.graalvm.word.UnsignedWord size,
org.graalvm.word.UnsignedWord alignment,
boolean executable)
Allocate a block of committed memory.
|
boolean |
areUnalignedChunksZeroed()
This method returns
true if the memory returned by CommittedMemoryProvider.allocateUnalignedChunk(org.graalvm.word.UnsignedWord) is
guaranteed to be zeroed. |
boolean |
free(org.graalvm.word.PointerBase start,
org.graalvm.word.UnsignedWord nbytes,
org.graalvm.word.UnsignedWord alignment,
boolean executable)
Release a block of committed memory that was allocated with
CommittedMemoryProvider.allocate(org.graalvm.word.UnsignedWord, org.graalvm.word.UnsignedWord, boolean), requiring the
exact same parameter values that were originally passed to CommittedMemoryProvider.allocate(org.graalvm.word.UnsignedWord, org.graalvm.word.UnsignedWord, boolean). |
int |
initialize(org.graalvm.nativeimage.c.type.WordPointer isolatePointer,
CEntryPointCreateIsolateParameters parameters)
Performs initializations for the current isolate, before any other methods of this
interface may be called.
|
int |
tearDown()
Tear down for the current isolate.
|
allocateAlignedChunk, allocateExecutableMemory, allocateUnalignedChunk, freeAlignedChunk, freeExecutableMemory, freeUnalignedChunk, guaranteesHeapPreferredAddressSpaceAlignment, protect, protectSingleIsolateImageHeapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitafterGarbageCollection, beforeGarbageCollection, get, getGranularitypublic int initialize(org.graalvm.nativeimage.c.type.WordPointer isolatePointer,
CEntryPointCreateIsolateParameters parameters)
CommittedMemoryProviderpublic int tearDown()
CommittedMemoryProviderpublic org.graalvm.word.Pointer allocate(org.graalvm.word.UnsignedWord size,
org.graalvm.word.UnsignedWord alignment,
boolean executable)
CommittedMemoryProvidersize - The number of bytes to allocate, which is rounded up to the next multiple of
the granularity if required.alignment - The required alignment of the block start, or CommittedMemoryProvider.UNALIGNED.executable - Whether the block must be executable.WordFactory.nullPointer() in case of an
error.public boolean areUnalignedChunksZeroed()
CommittedMemoryProvidertrue if the memory returned by CommittedMemoryProvider.allocateUnalignedChunk(org.graalvm.word.UnsignedWord) is
guaranteed to be zeroed.public boolean free(org.graalvm.word.PointerBase start,
org.graalvm.word.UnsignedWord nbytes,
org.graalvm.word.UnsignedWord alignment,
boolean executable)
CommittedMemoryProviderCommittedMemoryProvider.allocate(org.graalvm.word.UnsignedWord, org.graalvm.word.UnsignedWord, boolean), requiring the
exact same parameter values that were originally passed to CommittedMemoryProvider.allocate(org.graalvm.word.UnsignedWord, org.graalvm.word.UnsignedWord, boolean).start - The start of the memory block, as returned by CommittedMemoryProvider.allocate(org.graalvm.word.UnsignedWord, org.graalvm.word.UnsignedWord, boolean).nbytes - The originally requested size in bytes.alignment - The originally requested alignment.executable - Whether the block was requested to be executable.