public final class YoungGeneration extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Object object) |
int |
getMaxSurvivorSpaces() |
String |
getName() |
protected Object |
promoteAlignedObject(Object original,
AlignedHeapChunk.AlignedHeader originalChunk,
Space originalSpace)
Promote an Object to this Generation, typically by copying and leaving a forwarding pointer
to the new Object in place of the original Object.
|
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 int getMaxSurvivorSpaces()
public boolean walkObjects(ObjectVisitor visitor)
visitor - An ObjectVisitor.public Log report(Log log, boolean traceHeapChunks)
public boolean contains(Object object)
protected Object promoteAlignedObject(Object original, AlignedHeapChunk.AlignedHeader 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 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 String getName()