public abstract class Generation extends Object
Modifier and Type | Method and Description |
---|---|
String |
getName()
The name of this generation.
|
protected abstract Object |
promoteObject(Object original,
org.graalvm.word.UnsignedWord header)
Promote an Object to this Generation, either by HeapChunk motion or copying.
|
abstract Log |
report(Log log,
boolean traceHeapChunks)
Report some statistics about the Generation to a Log.
|
protected abstract boolean |
verify(HeapVerifier.Occasion occasion) |
abstract boolean |
walkObjects(ObjectVisitor visitor)
Walk the Objects in this Space, passing each to a Visitor.
|
protected final String name
public abstract boolean walkObjects(ObjectVisitor visitor)
visitor
- An ObjectVisitor.public String getName()
public abstract Log report(Log log, boolean traceHeapChunks)
protected abstract Object promoteObject(Object original, org.graalvm.word.UnsignedWord header)
original
- The original Object to be promoted.header
- The header of the object that should be promoted.protected abstract boolean verify(HeapVerifier.Occasion occasion)