public class Space extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Space.Accounting
Keep whatever accounting is required.
|
static interface |
Space.Verifier |
Modifier and Type | Field and Description |
---|---|
protected String |
name
The name of this Space.
|
Modifier | Constructor and Description |
---|---|
protected |
Space(String name,
boolean isFrom,
int age)
Constructor for sub-classes.
|
Modifier and Type | Method and Description |
---|---|
Space.Accounting |
getAccounting()
The accounting for this Space.
|
String |
getName()
The name of this Space.
|
boolean |
isEmpty()
Keep whatever accounting is required.
|
void |
release()
Release all the memory in this Space.
|
Log |
report(Log log,
boolean traceHeapChunks)
Report some statistics about this Space.
|
void |
tearDown()
Return all allocated virtual memory chunks to HeapChunkProvider.
|
void |
verifyDirtyCards() |
boolean |
walkDirtyObjects(ObjectVisitor visitor,
boolean clean)
Walk the dirty Objects in this Space, passing each to a Visitor.
|
boolean |
walkObjects(ObjectVisitor visitor)
Walk the Objects in this Space, passing each to a Visitor.
|
protected final String name
protected Space(String name, boolean isFrom, int age)
public Space.Accounting getAccounting()
public String getName()
public boolean isEmpty()
public final void tearDown()
public boolean walkObjects(ObjectVisitor visitor)
public boolean walkDirtyObjects(ObjectVisitor visitor, boolean clean)
visitor
- An ObjectVisitor.public void release()
public void verifyDirtyCards()