org.mmtk.vm
Class ActivePlan
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ActivePlan
public ActivePlan()
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.