public abstract class SimpleCollector extends ParallelCollector
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
Modifier and Type | Field and Description |
---|---|
protected SanityCheckerLocal |
sanityLocal
Used for sanity checking.
|
group, lastTriggerCount, workerOrdinal
log
Constructor and Description |
---|
SimpleCollector() |
Modifier and Type | Method and Description |
---|---|
void |
collectionPhase(short phaseId,
boolean primary)
Perform a (local, i.e.per-collector) collection phase.
|
private static Simple |
global() |
collect, getCurrentTrace, parallelWorkerCount, parallelWorkerOrdinal, park, rendezvous, run
allocCopy, copyCheckAllocator, getId, getLog, initCollector, postCopy
protected final SanityCheckerLocal sanityLocal
public SimpleCollector()
public void collectionPhase(short phaseId, boolean primary)
collectionPhase
in class ParallelCollector
phaseId
- The unique phase identifierprimary
- Should this thread be used to execute any single-threaded
local operations?