org.jikesrvm.adaptive
Class OSROrganizerThread

java.lang.Object
  extended by org.jikesrvm.scheduler.SystemThread
      extended by org.jikesrvm.adaptive.OSROrganizerThread

public final class OSROrganizerThread
extends SystemThread

Organizer thread collects OSR requests and inserted in controller queue The producers are application threads, and the consumer thread is the organizer. The buffer is RVMThread.threads array. The producer set it is own flag "requesting_osr" and notify the consumer. The consumer scans the threads array and collect requests.


Field Summary
 boolean osr_flag
           
 
Fields inherited from class org.jikesrvm.scheduler.SystemThread
rvmThread
 
Constructor Summary
OSROrganizerThread()
          Constructor
 
Method Summary
 void activate()
          Activates organizer thread if it is waiting.
private  void processOsrRequest()
           
 void run()
           
 
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

osr_flag

public boolean osr_flag
Constructor Detail

OSROrganizerThread

public OSROrganizerThread()
Constructor

Method Detail

run

public void run()
Specified by:
run in class SystemThread

activate

public void activate()
Activates organizer thread if it is waiting.


processOsrRequest

private void processOsrRequest()