public class OldGeneration extends Generation
OldGeneration.fromSpace
for existing objects, and OldGeneration.toSpace
for newly-allocated or promoted objects.name
Modifier and Type | Method and Description |
---|---|
Space |
getFromSpace() |
protected boolean |
isValidSpace(Space space)
Returns true if the space is a valid Space in this generation, else false.
|
protected void |
prepareForPromotion() |
Object |
promoteObject(Object original)
Promote an Object to ToSpace if it is not already in ToSpace.
|
Log |
report(Log log,
boolean traceHeapChunks)
Report some statistics about the Generation to a Log.
|
protected void |
scanGreyObjects() |
void |
tearDown()
Return all allocated virtual memory chunks to HeapChunkProvider.
|
protected boolean |
verify(HeapVerifier.Occasion occasion) |
protected void |
walkDirtyObjects(ObjectVisitor visitor,
boolean clean) |
boolean |
walkObjects(ObjectVisitor visitor)
Walk the Objects in this Space, passing each to a Visitor.
|
getName
public final void tearDown()
public boolean walkObjects(ObjectVisitor visitor)
Generation
walkObjects
in class Generation
visitor
- An ObjectVisitor.public Object promoteObject(Object original)
promoteObject
in class Generation
original
- The original Object to be promoted.protected void walkDirtyObjects(ObjectVisitor visitor, boolean clean)
protected void prepareForPromotion()
protected void scanGreyObjects()
public Log report(Log log, boolean traceHeapChunks)
Generation
report
in class Generation
protected boolean isValidSpace(Space space)
Generation
isValidSpace
in class Generation
protected boolean verify(HeapVerifier.Occasion occasion)
verify
in class Generation
public Space getFromSpace()