| Modifier | Constructor and Description |
|---|---|
protected |
Heap() |
| Modifier and Type | Method and Description |
|---|---|
abstract PinnedAllocator |
createPinnedAllocator()
Create a PinnedAllocator.
|
abstract void |
disableAllocation(org.graalvm.nativeimage.IsolateThread vmThread) |
abstract void |
endSafepoint()
Reset the heap to the normal execution state.
|
abstract List<Class<?>> |
getClassList()
Return a list of all the classes in the heap.
|
abstract GC |
getGC() |
abstract org.graalvm.compiler.nodes.spi.GCProvider |
getGCProvider()
Returns a suitable
GCProvider for the garbage collector that is used for this heap. |
static Heap |
getHeap()
Retuns the singleton
Heap implementation that is created during image generation. |
abstract MemoryMXBean |
getMemoryMXBean()
Get the MemoryMXBean for this heap.
|
abstract ObjectHeader |
getObjectHeader()
Get the ObjectHeader implementation that this Heap uses.
|
abstract boolean |
isAllocationDisallowed()
Allocation is disallowed if ...
|
abstract void |
prepareForSafepoint()
Prepare the heap for a safepoint.
|
abstract void |
resumeAllocation() |
abstract void |
suspendAllocation() |
abstract void |
tearDown()
Tear down the heap, return all allocated virtual memory chunks to VirtualMemoryProvider.
|
abstract void |
walkObjects(ObjectVisitor visitor)
Walk all the Objects in the Heap, passing each to the visitor.
|
public static Heap getHeap()
Heap implementation that is created during image generation.public abstract void suspendAllocation()
public abstract void resumeAllocation()
public abstract void disableAllocation(org.graalvm.nativeimage.IsolateThread vmThread)
public abstract boolean isAllocationDisallowed()
public abstract PinnedAllocator createPinnedAllocator()
public abstract GC getGC()
public abstract void walkObjects(ObjectVisitor visitor)
public abstract List<Class<?>> getClassList()
public abstract ObjectHeader getObjectHeader()
public abstract MemoryMXBean getMemoryMXBean()
public abstract void tearDown()
public abstract void prepareForSafepoint()
public abstract void endSafepoint()
public abstract org.graalvm.compiler.nodes.spi.GCProvider getGCProvider()
GCProvider for the garbage collector that is used for this heap.