public class GCTraceCollector extends SSCollector
Specifically, this class defines SS collection behavior
(through inducedTrace
and the collectionPhase
method), and collection-time allocation (copying of objects).
See GCTrace
for an overview of the GC trace algorithm.
SSCollector
,
GCTrace
,
GCTraceMutator
,
StopTheWorldCollector
,
CollectorContext
Modifier and Type | Field and Description |
---|---|
protected GCTraceTraceLocal |
inducedTrace
Instance fields
|
los, ss, trace
sanityLocal
group
log
Constructor and Description |
---|
GCTraceCollector()
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 GCTrace |
global() |
allocCopy, isSemiSpaceObject, postCopy
collect, concurrentCollect, concurrentCollectionPhase
parallelWorkerCount, parallelWorkerOrdinal, park, rendezvous, run
copyCheckAllocator, getId, getLog, initCollector
protected final GCTraceTraceLocal inducedTrace
public GCTraceCollector()
public void collectionPhase(short phaseId, boolean primary)
collectionPhase
in class SSCollector
phaseId
- The unique phase identifierprimary
- Should this thread be used to execute any single-threaded
local operations?public TraceLocal getCurrentTrace()
getCurrentTrace
in class SSCollector