org.mmtk.vm
Class ActivePlan

java.lang.Object
  extended by org.mmtk.vm.ActivePlan
Direct Known Subclasses:
ActivePlan

public abstract class ActivePlan
extends Object

Stub to give access to plan local, constraint and global instances


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

Constructor Detail

ActivePlan

public ActivePlan()
Method Detail

global

public abstract Plan global()
Returns:
The active Plan instance.

constraints

public abstract PlanConstraints constraints()
Returns:
The active PlanConstraints instance.

collector

public abstract CollectorContext collector()
Returns:
The active CollectorContext instance.

isMutator

public abstract boolean isMutator()
Returns:
Is the active thread a mutator thread.

mutator

public abstract MutatorContext mutator()
Returns:
The active MutatorContext instance.

log

public abstract Log log()
Returns:
The log for the active thread

collectorCount

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

resetMutatorIterator

public abstract void resetMutatorIterator()
Reset the mutator iterator


getNextMutator

public abstract MutatorContext getNextMutator()
Return the next MutatorContext in a synchronized iteration of all mutators.

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