public class OldGeneration extends Generation
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,
org.graalvm.word.Pointer objRef,
int innerOffset,
boolean compressed)
Promote an Object to ToSpace if it is not already in ToSpace or PinnedToSpace.
|
protected void |
promotePinnedAllocatorChunks(boolean completeCollection) |
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.
|
getNamepublic final void tearDown()
public boolean walkObjects(ObjectVisitor visitor)
GenerationwalkObjects in class Generationvisitor - An ObjectVisitor.public Object promoteObject(Object original, org.graalvm.word.Pointer objRef, int innerOffset, boolean compressed)
promoteObject in class Generationoriginal - The original Object to be promoted.objRef - The address of the reference to the original object.innerOffset - The byte offset of a derived pointer from head of the original object.
Subtract to get to the head of the original object, add to get back to a derived
pointer inside the original object.compressed - Whether object references are compressed.protected void walkDirtyObjects(ObjectVisitor visitor, boolean clean)
protected void prepareForPromotion()
protected void scanGreyObjects()
protected void promotePinnedAllocatorChunks(boolean completeCollection)
public Log report(Log log, boolean traceHeapChunks)
Generationreport in class Generationprotected boolean isValidSpace(Space space)
GenerationisValidSpace in class Generationprotected boolean verify(HeapVerifier.Occasion occasion)
verify in class Generationpublic Space getFromSpace()