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