public final class YoungGeneration extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Object object) |
int |
getMaxSurvivorSpaces() |
String |
getName() |
protected Object |
promoteObject(Object original,
org.graalvm.word.UnsignedWord header)
Promote an Object to this Generation, either by HeapChunk motion or copying.
|
Log |
report(Log log,
boolean traceHeapChunks)
Report some statistics about the Generation to a Log.
|
boolean |
walkObjects(ObjectVisitor visitor)
Walk the Objects in this Space, passing each to a Visitor.
|
public int getMaxSurvivorSpaces()
public boolean walkObjects(ObjectVisitor visitor)
visitor
- An ObjectVisitor.public Log report(Log log, boolean traceHeapChunks)
protected 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.public boolean contains(Object object)
public String getName()