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.
CollectorContext
sanityLocal
group, lastTriggerCount, workerOrdinal
log
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() |
collectionPhase
getCurrentTrace, parallelWorkerCount, parallelWorkerOrdinal, park, rendezvous, run
allocCopy, copyCheckAllocator, getId, getLog, initCollector, postCopy
public StopTheWorldCollector()
public void collect()
collect
in class ParallelCollector
public final void concurrentCollect()
public void concurrentCollectionPhase(short phaseId)
phaseId
- The unique phase identifierprivate static StopTheWorld global()
StopTheWorld
instance.