public class MCCollector extends StopTheWorldCollector
Specifically, this class defines MC collection behavior
(through trace
and the collectionPhase
method), and collection-time allocation.
Modifier and Type | Field and Description |
---|---|
private boolean |
currentTrace |
private MCForwardTraceLocal |
forwardTrace |
private MCMarkTraceLocal |
markTrace |
private MarkCompactCollector |
mc |
private static boolean |
TRACE_FORWARD |
private static boolean |
TRACE_MARK |
sanityLocal
group
log
Constructor and Description |
---|
MCCollector()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
collectionPhase(short phaseId,
boolean primary)
Perform a (local, i.e.per-collector) collection phase.
|
TraceLocal |
getCurrentTrace() |
private static MC |
global() |
collect, concurrentCollect, concurrentCollectionPhase
parallelWorkerCount, parallelWorkerOrdinal, park, rendezvous, run
allocCopy, copyCheckAllocator, getId, getLog, initCollector, postCopy
private static final boolean TRACE_MARK
private static final boolean TRACE_FORWARD
private final MCMarkTraceLocal markTrace
private final MCForwardTraceLocal forwardTrace
private final MarkCompactCollector mc
private boolean currentTrace
public MCCollector()
public final void collectionPhase(short phaseId, boolean primary)
collectionPhase
in class SimpleCollector
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