org.jikesrvm.adaptive.recompilation
Class CompilationThread

java.lang.Object
  extended by org.jikesrvm.scheduler.SystemThread
      extended by org.jikesrvm.adaptive.recompilation.CompilationThread

public final class CompilationThread
extends SystemThread

This class is a separate thread whose job is to monitor a (priority) queue of compilation plans. Whenever the queue is nonempty, this thread will pick the highest priority compilation plan from the queue and invoke the OPT compiler to perform the plan.

No intelligence is contained in this class. All policy decisions are made by the ControllerThread.


Field Summary
 
Fields inherited from class org.jikesrvm.scheduler.SystemThread
rvmThread
 
Constructor Summary
CompilationThread()
          constructor
 
Method Summary
 void run()
          This is the main loop of the compilation thread.
 
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
 

Constructor Detail

CompilationThread

public CompilationThread()
constructor

Method Detail

run

public void run()
This is the main loop of the compilation thread. Its job is to remove controller plans from the compilation queue and perform them.

Specified by:
run in class SystemThread