|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mmtk.plan.Phase org.mmtk.plan.ComplexPhase
public final class ComplexPhase
Phases of a garbage collection.
A complex phase is a sequence of phases.
Field Summary | |
---|---|
private int[] |
scheduledSubPhases
The phases that comprise this phase. |
Fields inherited from class org.mmtk.plan.Phase |
---|
id, name, SCHEDULE_COLLECTOR, SCHEDULE_COMPLEX, SCHEDULE_CONCURRENT, SCHEDULE_GLOBAL, SCHEDULE_MUTATOR, SCHEDULE_PLACEHOLDER, timer |
Constructor Summary | |
---|---|
protected |
ComplexPhase(String name,
int[] scheduledSubPhases)
Construct a complex phase from an array of phase IDs. |
protected |
ComplexPhase(String name,
Timer timer,
int[] scheduledSubPhases)
Construct a complex phase from an array of phase IDs, but using the specified timer rather than creating one. |
Method Summary | |
---|---|
private void |
checkPhases()
Validate the scheduled sub phases. |
protected int |
count()
The number of scheduled sub phases. |
protected int |
get(int index)
Return an individual scheduled sub phase. |
protected void |
logPhase()
Display a description of this phase, for debugging purposes. |
void |
replacePhase(int oldScheduledPhase,
int newScheduledPhase)
Replace a scheduled phase. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final int[] scheduledSubPhases
Constructor Detail |
---|
protected ComplexPhase(String name, int[] scheduledSubPhases)
name
- The name of the phase.scheduledSubPhases
- The sub phasesprotected ComplexPhase(String name, Timer timer, int[] scheduledSubPhases)
name
- The name of the phase.timer
- The timer for this phase to contribute to.scheduledSubPhases
- The sub phasesMethod Detail |
---|
private void checkPhases()
protected int count()
protected int get(int index)
index
- The index
protected void logPhase()
Phase
logPhase
in class Phase
public void replacePhase(int oldScheduledPhase, int newScheduledPhase)
oldScheduledPhase
- The scheduled phase to replace.newScheduledPhase
- The new scheduled phase.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |