public final class Space extends Object
AlignedHeapChunk
and one of
UnalignedHeapChunk
.
The Space for the YoungGeneration is special because it keeps Pointers to the "top" and "end" of
the current aligned allocation chunk for fast-path allocation without any indirections. The
complication is the "top" pointer has to be flushed back to the chunk to make the heap parsable.Modifier and Type | Method and Description |
---|---|
AlignedHeapChunk.AlignedHeader |
getFirstAlignedHeapChunk() |
UnalignedHeapChunk.UnalignedHeader |
getFirstUnalignedHeapChunk() |
String |
getName() |
boolean |
isEmpty() |
boolean |
isOldSpace() |
boolean |
isYoungSpace() |
void |
releaseChunks(GCImpl.ChunkReleaser chunkReleaser) |
Log |
report(Log log,
boolean traceHeapChunks)
Report some statistics about this Space.
|
boolean |
walkObjects(ObjectVisitor visitor) |
public String getName()
public boolean isEmpty()
public boolean isYoungSpace()
public boolean isOldSpace()
public boolean walkObjects(ObjectVisitor visitor)
public void releaseChunks(GCImpl.ChunkReleaser chunkReleaser)
public AlignedHeapChunk.AlignedHeader getFirstAlignedHeapChunk()
public UnalignedHeapChunk.UnalignedHeader getFirstUnalignedHeapChunk()