Modifier | Constructor and Description |
---|---|
protected |
Heap() |
Modifier and Type | Method and Description |
---|---|
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() |
abstract MemoryMXBean |
getMemoryMXBean()
Get the MemoryMXBean for this heap.
|
abstract ObjectHeader |
getObjectHeader()
Get the ObjectHeader implementation that this Heap uses.
|
abstract boolean |
isAllocationDisallowed() |
abstract boolean |
isInImageHeap(Object object)
Returns true if the given object is located in the image heap.
|
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()
public abstract void suspendAllocation()
public abstract void resumeAllocation()
public abstract void disableAllocation(org.graalvm.nativeimage.IsolateThread vmThread)
public abstract boolean isAllocationDisallowed()
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.public abstract boolean isInImageHeap(Object object)