if (DEBUG) { if (VM_ClassLoader.getCompiledMethod(cmid) == null) { VM.sysWrite("update called with null cmid, cmid: "); VM.sysWrite(cmid, false); VM.sysWrite("\n");  VM.sysWrite("countBuffer position: "); VM.sysWrite(i, false); VM.sysWrite("\n"); } }
  public final synchronized void update(int[] countBuffer, int numCounts) {    for (int i=0; i<numCounts; i++) {      int cmid = countBuffer[i];      if (DEBUG) {	if (VM_ClassLoader.getCompiledMethod(cmid) == null) {	  VM.sysWrite("update called with null cmid, cmid: ");	  VM.sysWrite(cmid, false);	  VM.sysWrite("\n");	  VM.sysWrite("countBuffer position: ");	  VM.sysWrite(i, false);	  VM.sysWrite("\n");	}      }      int index = findOrCreateHeapIdx(cmid);      counts[index]++;      // Record count      heapifyUp(index);     // Fix up the heap    }    totalCountsTaken += numCounts;    undecayedTotalCountsTaken += numCounts;    if (DEBUG) validityCheck();  }