org.jikesrvm.adaptive.controller
Class HotMethodRecompilationEvent

java.lang.Object
  extended by org.jikesrvm.adaptive.controller.HotMethodEvent
      extended by org.jikesrvm.adaptive.controller.HotMethodRecompilationEvent
All Implemented Interfaces:
ControllerInputEvent

public final class HotMethodRecompilationEvent
extends HotMethodEvent
implements ControllerInputEvent

Event used by the basic recompilation organizer to notify the controller that a method is hot.


Constructor Summary
HotMethodRecompilationEvent(CompiledMethod _cm, double _numSamples)
           
HotMethodRecompilationEvent(CompiledMethod _cm, int _numSamples)
           
 
Method Summary
 void process()
          This method is called by the controller upon dequeuing this event from the controller input queue.
 String toString()
           
 
Methods inherited from class org.jikesrvm.adaptive.controller.HotMethodEvent
getCMID, getCompiledMethod, getMethod, getNumSamples, getOptCompiledLevel, getPrevCompilerConstant, isOptCompiled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HotMethodRecompilationEvent

public HotMethodRecompilationEvent(CompiledMethod _cm,
                                   double _numSamples)
Parameters:
_cm - the compiled method
_numSamples - the number of samples attributed to the method

HotMethodRecompilationEvent

HotMethodRecompilationEvent(CompiledMethod _cm,
                            int _numSamples)
Parameters:
_cm - the compiled method
_numSamples - the number of samples attributed to the method
Method Detail

toString

public String toString()
Overrides:
toString in class HotMethodEvent

process

public void process()
This method is called by the controller upon dequeuing this event from the controller input queue. In this case, the method simply passes the event to the recompilation strategy.

Specified by:
process in interface ControllerInputEvent