if (notifyOrganizer) { activateOrganizer(); } else { passivate(); processSamples(); reset(); activate(); }
activateOrganizer();
  private void recordSample(int CMID) {      // reserve the next available slot    int idx = VM_Synchronization.fetchAndAdd(this, VM_Entrypoints.methodListenerNumSamplesField.getOffset(), 1);    // make sure it is valid    if (idx < sampleSize) {      samples[idx] = CMID;    }    if (idx+1 == sampleSize) {      // The last sample.       if (notifyOrganizer) {	activateOrganizer(); // organizer will process      } else { // must process them ourself	passivate();	processSamples();	reset();	activate();      }    }  }