org.jikesrvm.mm.mmtk
Class ActivePlan

java.lang.Object
  extended by org.mmtk.vm.ActivePlan
      extended by org.jikesrvm.mm.mmtk.ActivePlan

public final class ActivePlan
extends ActivePlan

This class contains interfaces to access the current plan, plan local and plan constraints instances.


Field Summary
private static Log buildLog
          Log instance used at build time
private static SynchronizedCounter mutatorCounter
           
 
Constructor Summary
ActivePlan()
           
 
Method Summary
 CollectorContext collector()
           
 int collectorCount()
           
 PlanConstraints constraints()
           
 MutatorContext getNextMutator()
          Return the next MutatorContext in a synchronized iteration of all mutators.
 Plan global()
           
 boolean isMutator()
           
 Log log()
           
 MutatorContext mutator()
           
 void resetMutatorIterator()
          Reset the mutator iterator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mutatorCounter

private static SynchronizedCounter mutatorCounter

buildLog

private static final Log buildLog
Log instance used at build time

Constructor Detail

ActivePlan

public ActivePlan()
Method Detail

global

public Plan global()
Specified by:
global in class ActivePlan
Returns:
The active Plan instance.

constraints

public PlanConstraints constraints()
Specified by:
constraints in class ActivePlan
Returns:
The active PlanConstraints instance.

collectorCount

public int collectorCount()
Specified by:
collectorCount in class ActivePlan
Returns:
The maximum number of collector threads that may participate in parallel GC.

collector

public CollectorContext collector()
Specified by:
collector in class ActivePlan
Returns:
The active CollectorContext instance.

isMutator

public boolean isMutator()
Specified by:
isMutator in class ActivePlan
Returns:
Is the active thread a mutator thread.

mutator

public MutatorContext mutator()
Specified by:
mutator in class ActivePlan
Returns:
The active MutatorContext instance.

log

public Log log()
Specified by:
log in class ActivePlan
Returns:
The log for the active thread

resetMutatorIterator

public void resetMutatorIterator()
Description copied from class: ActivePlan
Reset the mutator iterator

Specified by:
resetMutatorIterator in class ActivePlan

getNextMutator

public MutatorContext getNextMutator()
Description copied from class: ActivePlan
Return the next MutatorContext in a synchronized iteration of all mutators.

Specified by:
getNextMutator in class ActivePlan
Returns:
The next MutatorContext in a synchronized iteration of all mutators, or null when all mutators have been done.