public final class OldGeneration extends Object
OldGeneration.fromSpace for existing objects, and OldGeneration.toSpace
for newly-allocated or promoted objects.| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
Object |
promoteAlignedObject(Object original,
AlignedHeapChunk.AlignedHeader originalChunk,
Space originalSpace)
Promote an Object to ToSpace if it is not already in ToSpace.
|
protected boolean |
promoteChunk(HeapChunk.Header<?> originalChunk,
boolean isAligned,
Space originalSpace)
Promote a HeapChunk from its original space to the appropriate space in this generation if
there is sufficient capacity.
|
protected Object |
promoteUnalignedObject(Object original,
UnalignedHeapChunk.UnalignedHeader originalChunk,
Space originalSpace)
Promote an Object to this Generation, typically by HeapChunk motion.
|
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 boolean walkObjects(ObjectVisitor visitor)
visitor - An ObjectVisitor.public Object promoteAlignedObject(Object original, AlignedHeapChunk.AlignedHeader originalChunk, Space originalSpace)
null if there was insufficient capacity in
this generation.protected Object promoteUnalignedObject(Object original, UnalignedHeapChunk.UnalignedHeader originalChunk, Space originalSpace)
null.
This turns an Object from white to grey: the object is in this Generation, but has not yet
had its interior pointers visited.null if there was insufficient
capacity in this generation.protected boolean promoteChunk(HeapChunk.Header<?> originalChunk, boolean isAligned, Space originalSpace)
public Log report(Log log, boolean traceHeapChunks)
public String getName()