public class YoungGeneration extends Generation
name| Modifier and Type | Method and Description |
|---|---|
Space |
getSpace()
Space access method.
|
protected boolean |
isValidSpace(Space thatSpace)
Returns true if the space is a valid Space in this generation, else false.
|
protected Object |
promoteObject(Object original)
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.
|
void |
tearDown()
Return all allocated virtual memory chunks to HeapChunkProvider.
|
protected boolean |
verify(HeapVerifier.Occasion occasion) |
boolean |
walkObjects(ObjectVisitor visitor)
Walk the Objects in this Space, passing each to a Visitor.
|
getNamepublic final void tearDown()
public boolean walkObjects(ObjectVisitor visitor)
GenerationwalkObjects in class Generationvisitor - An ObjectVisitor.public Log report(Log log, boolean traceHeapChunks)
Generationreport in class Generationpublic final Space getSpace()
protected Object promoteObject(Object original)
GenerationpromoteObject in class Generationoriginal - The original Object to be promoted.protected boolean isValidSpace(Space thatSpace)
GenerationisValidSpace in class Generationprotected boolean verify(HeapVerifier.Occasion occasion)
verify in class Generation