public abstract class StopTheWorldCollector extends SimpleCollector
MMTk assumes that the VM instantiates instances of CollectorContext in thread local storage (TLS) for each thread participating in collection. Accesses to this state are therefore assumed to be low-cost during mutator time.
CollectorContextsanityLocalgroup, lastTriggerCount, workerOrdinallog| Constructor and Description |
|---|
StopTheWorldCollector() |
| Modifier and Type | Method and Description |
|---|---|
void |
collect()
Perform garbage collection
|
void |
concurrentCollect()
Perform some concurrent garbage collection
|
void |
concurrentCollectionPhase(short phaseId)
Perform some concurrent collection work.
|
private static StopTheWorld |
global() |
collectionPhasegetCurrentTrace, parallelWorkerCount, parallelWorkerOrdinal, park, rendezvous, runallocCopy, copyCheckAllocator, getId, getLog, initCollector, postCopypublic StopTheWorldCollector()
public void collect()
collect in class ParallelCollectorpublic final void concurrentCollect()
public void concurrentCollectionPhase(short phaseId)
phaseId - The unique phase identifierprivate static StopTheWorld global()
StopTheWorld instance.