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 |
sanityLocalgrouplog| 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, concurrentCollectionPhaseparallelWorkerCount, parallelWorkerOrdinal, park, rendezvous, runallocCopy, copyCheckAllocator, getId, getLog, initCollector, postCopyprivate 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 SimpleCollectorphaseId - The unique phase identifierprimary - Should this thread be used to execute any single-threaded
local operations?public final TraceLocal getCurrentTrace()
getCurrentTrace in class ParallelCollector