org.jikesrvm.mm.mminterface
Class CollectorThread

java.lang.Object
  extended by org.jikesrvm.scheduler.SystemThread
      extended by 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
 
Fields inherited from class org.jikesrvm.scheduler.SystemThread
rvmThread
 
Constructor Summary
CollectorThread(byte[] stack, CollectorContext context)
          Constructor
 
Method Summary
 ScanThread getThreadScanner()
           
 void run()
          Collection entry point.
 
Methods inherited from class org.jikesrvm.scheduler.SystemThread
getRVMThread, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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.

Constructor Detail

CollectorThread

public CollectorThread(byte[] stack,
                       CollectorContext context)
Constructor

Parameters:
stack - The stack this thread will run on
Method Detail

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