org.jikesrvm.mm.mminterface
Class CollectorThread
java.lang.Object
org.jikesrvm.scheduler.SystemThread
org.jikesrvm.mm.mminterface.CollectorThread
public final class CollectorThread
- extends SystemThread
System thread used to perform garbage collection work.
Field Summary |
private static int |
nextId
Next collector thread id. |
private ScanThread |
threadScanner
used by collector threads to hold state during stack scanning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
threadScanner
private final ScanThread threadScanner
- used by collector threads to hold state during stack scanning
nextId
private static int nextId
- Next collector thread id. Collector threads are not created concurrently.
CollectorThread
public CollectorThread(byte[] stack,
CollectorContext context)
- Constructor
- Parameters:
stack
- The stack this thread will run on
getThreadScanner
public ScanThread getThreadScanner()
- Returns:
- the thread scanner instance associated with this instance
run
public void run()
- Collection entry point. Delegates the real work to MMTk.
- Specified by:
run
in class SystemThread