org.jikesrvm.adaptive.measurements.organizers
Class DecayOrganizer

java.lang.Object
  extended by org.jikesrvm.scheduler.RVMThread
      extended by org.jikesrvm.scheduler.greenthreads.GreenThread
          extended by org.jikesrvm.adaptive.measurements.organizers.Organizer
              extended by org.jikesrvm.adaptive.measurements.organizers.DecayOrganizer

public final class DecayOrganizer
extends Organizer

An organizer that periodically decays runtime counters


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jikesrvm.scheduler.RVMThread
RVMThread.State
 
Field Summary
 
Fields inherited from class org.jikesrvm.adaptive.measurements.organizers.Organizer
listener
 
Fields inherited from class org.jikesrvm.scheduler.greenthreads.GreenThread
chosenProcessorId, processorAffinity, threadProxy
 
Fields inherited from class org.jikesrvm.scheduler.RVMThread
BACKEDGE, beingDispatched, bridgeInstructions, cachedFreeLock, causeOfThreadDeath, contextRegisters, daemon, EPILOGUE, feedlet, fooFPOffset, interrupted, isWaitingForOsr, jniEnv, NATIVE_EPILOGUE, NATIVE_PROLOGUE, onStackReplacementEvent, OSROPT, PROLOGUE, proxyInterruptException, requesting_osr, stackLimit, state, throwInterruptWhenScheduled, trace, tsFPOffset, waitCount, waitObject, wakeupNanoTime
 
Constructor Summary
DecayOrganizer(YieldCounterListener listener)
           
 
Method Summary
 void initialize()
          Initialization: install and activate our listener.
(package private)  void thresholdReached()
          Method that is called when the sampling threshold is reached We decay the decayable objects and activate the listener again.
 
Methods inherited from class org.jikesrvm.adaptive.measurements.organizers.Organizer
activate, report, run
 
Methods inherited from class org.jikesrvm.scheduler.greenthreads.GreenThread
block, getNext, getThreadState, ioWaitImpl, killInternal, notifyAllInternal, notifyInternal, osrPark, osrUnpark, processWaitImpl, registerThreadInternal, resumeInternal, schedule, setNext, sleepInternal, start, suspendInternal, timerTickYield, unblock, waitInternal, waitInternal, yield, yield, yield, yield, yieldpoint
 
Methods inherited from class org.jikesrvm.scheduler.RVMThread
changeThreadState, clearDisallowAllocationsByThisThread, clearEmergencyAllocation, clearInterrupted, clearOutOfMemoryError, clearPhysicalAllocationFailed, countStackFrames, dump, dump, dump, dump, dumpAll, dumpWithPadding, emergencyAllocation, endTimedInterval, fixupMovedStack, getCauseOfThreadDeath, getCollectionAttempt, getContextRegisters, getDisableGCDepth, getDisallowAllocationsByThisThread, getExceptionRegisters, getIndex, getJavaLangThread, getJNIEnv, getLockingId, getName, getOutOfMemoryError, getPriority, getStack, getStackLength, getState, getThreadForStackTrace, handleUncaughtException, hasActiveTimedInterval, hasNativeStackFrame, holdsLock, initializeJNIEnv, interrupt, isAlive, isBootThread, isDaemonThread, isDebuggerThread, isGCThread, isIdleThread, isInterrupted, isSystemThread, join, kill, makeDaemon, notify, notifyAll, notifyAllUninterruptible, park, physicalAllocationFailed, postExternalInterrupt, raiseIllegalMonitorStateException, registerThread, reportCollectionAttempt, resetCollectionAttempts, resizeCurrentStack, resume, resumeInterval, setDisableGCDepth, setDisallowAllocationsByThisThread, setEmergencyAllocation, setName, setOutOfMemoryError, setPhysicalAllocationFailed, setPriority, setupBootThread, sleep, start, startTimedInterval, suspend, suspendInterval, terminate, toString, unpark, wait, wait, yieldpointFromBackedge, yieldpointFromEpilogue, yieldpointFromPrologue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DecayOrganizer

public DecayOrganizer(YieldCounterListener listener)
Parameters:
listener - the associated listener
Method Detail

initialize

public void initialize()
Initialization: install and activate our listener.

Specified by:
initialize in class Organizer

thresholdReached

void thresholdReached()
Method that is called when the sampling threshold is reached We decay the decayable objects and activate the listener again.

Specified by:
thresholdReached in class Organizer