VM_RuntimeMeasurements.installContextListener(edgeListener); edgeListener.activate();
VM_RuntimeMeasurements.installContextListener((VM_EdgeListener)listener);
  public void initialize() {    if (DEBUG) VM.sysWrite("VM_AIByEdgeOrganizer.initialize(): enter\n");    if (VM.LogAOSEvents) VM_AOSLogging.AIByEdgeOrganizerThreadStarted();    numberOfBufferTriples = VM_Controller.options.AI_SAMPLE_SIZE;    bufferSize = numberOfBufferTriples * 3;    buffer     = new int[bufferSize];    edgeListener.setBuffer(buffer);     // allocate internal data structures.    callGraph   = VM_AdaptiveInlining.getPartialCallGraph();    // Install and activate the edge listener    VM_RuntimeMeasurements.installContextListener(edgeListener);    edgeListener.activate();    // register as decayable    VM_RuntimeMeasurements.registerDecayableObject(this);    if (DEBUG) VM.sysWrite("VM_AIByEdgeOrganizer.initialize(): exit\n");  }