|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.mmtk.plan.CollectorContext
org.mmtk.plan.nogc.NoGCCollector
public class NoGCCollector
This class implements per-collector thread behavior and state for the NoGC plan, which simply allocates (without ever collecting until the available space is exhausted.
Specifically, this class would define NoGC collection time semantics, however, since this plan never collects, this class consists only of stubs which may be useful as a template for implementing a basic collector.
NoGC,
NoGCMutator,
CollectorContext| Field Summary | |
|---|---|
protected TraceLocal |
currentTrace
|
private NoGCTraceLocal |
trace
Instance fields |
| Fields inherited from class org.mmtk.plan.CollectorContext |
|---|
immortal, resetConcurrentWork, sanityLocal |
| Constructor Summary | |
|---|---|
NoGCCollector()
|
|
| Method Summary | |
|---|---|
void |
collect()
Perform a garbage collection |
void |
collectionPhase(short phaseId,
boolean primary)
Perform a per-collector collection phase. |
void |
concurrentCollect()
Perform some concurrent garbage collection |
void |
concurrentCollectionPhase(short phaseId)
Perform some concurrent collection work. |
TraceLocal |
getCurrentTrace()
|
private static NoGC |
global()
|
| Methods inherited from class org.mmtk.plan.CollectorContext |
|---|
allocCopy, clearResetConcurrentWork, copyCheckAllocator, getId, initCollector, postCopy, resetConcurrentWork |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final NoGCTraceLocal trace
protected final TraceLocal currentTrace
| Constructor Detail |
|---|
public NoGCCollector()
| Method Detail |
|---|
public final void collect()
collect in class CollectorContextpublic final void concurrentCollect()
concurrentCollect in class CollectorContext
public final void collectionPhase(short phaseId,
boolean primary)
collectionPhase in class CollectorContextphaseId - The collection phase to performprimary - perform any single-threaded local activities.public void concurrentCollectionPhase(short phaseId)
concurrentCollectionPhase in class CollectorContextphaseId - The unique phase identifierprivate static NoGC global()
NoGC instance.public final TraceLocal getCurrentTrace()
getCurrentTrace in class CollectorContext
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||