public abstract class ConcurrentCollector extends SimpleCollector
Modifier and Type | Field and Description |
---|---|
private static boolean |
continueCollecting |
sanityLocal
group
log
Constructor and Description |
---|
ConcurrentCollector() |
Modifier and Type | Method and Description |
---|---|
void |
collect()
Perform a single garbage collection
|
void |
collectionPhase(short phaseId,
boolean primary)
Perform a (local, i.e.per-collector) collection phase.
|
void |
concurrentCollect()
Perform some concurrent garbage collection
|
void |
concurrentCollectionPhase(short phaseId)
Perform some concurrent collection work.
|
protected abstract boolean |
concurrentTraceComplete() |
private static Concurrent |
global() |
void |
run()
Entry point for the collector context.
|
getCurrentTrace, parallelWorkerCount, parallelWorkerOrdinal, park, rendezvous
allocCopy, copyCheckAllocator, getId, getLog, initCollector, postCopy
private static volatile boolean continueCollecting
public ConcurrentCollector()
public void run()
run
in class ParallelCollector
public final void concurrentCollect()
public void collect()
ParallelCollector
collect
in class ParallelCollector
public void collectionPhase(short phaseId, boolean primary)
SimpleCollector
collectionPhase
in class SimpleCollector
phaseId
- The unique phase identifierprimary
- Should this thread be used to execute any single-threaded
local operations?public void concurrentCollectionPhase(short phaseId)
phaseId
- The unique phase identifierprotected abstract boolean concurrentTraceComplete()
private static Concurrent global()
Concurrent
instance.