public abstract class Generation extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
The name of this generation.
|
protected abstract boolean |
isValidSpace(Space space)
Returns true if the space is a valid Space in this generation, else false.
|
protected abstract Object |
promoteObject(Object original,
org.graalvm.word.Pointer objRef,
int innerOffset,
boolean compressed)
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.Pointer objRef, int innerOffset, boolean compressed)
original - The original Object to be promoted.objRef - The address of the reference to the original object.innerOffset - The byte offset of a derived pointer from head of the original object.
Subtract to get to the head of the original object, add to get back to a derived
pointer inside the original object.compressed - Whether object references are compressed.protected abstract boolean isValidSpace(Space space)
protected abstract boolean verify(HeapVerifier.Occasion occasion)