boolean TRACKING_BUG = true; if (TRACKING_BUG) { VM_CompiledMethod cm = VM_ClassLoader.getCompiledMethod(cmid); if (cm == null) { VM.sysWrite("VM_MethodCountData.insertHotOptNMethodsInternal:\n"); VM.sysWrite("   processing a cmid that doesn't have a valid entry:"); VM.sysWrite(cmid, false); VM.sysWrite("   index: "); VM.sysWrite(index, false); } }
  private void collectHotOptNMethodsInternal(int index, 					     Vector collect, 					     double threshold, 					     int optLevel) {    if (index < nextIndex) {      if (counts[index] > threshold) {	int cmid = cmids[index];	boolean TRACKING_BUG = true;	if (TRACKING_BUG) {	  VM_CompiledMethod cm = VM_ClassLoader.getCompiledMethod(cmid);	  if (cm == null) {	    VM.sysWrite("VM_MethodCountData.insertHotOptNMethodsInternal:\n");	    VM.sysWrite("   processing a cmid that doesn't have a valid entry:");	    VM.sysWrite(cmid, false);	    VM.sysWrite("   index: ");	    VM.sysWrite(index, false);	  }	}	VM_CompilerInfo info = 	  VM_ClassLoader.getCompiledMethod(cmid).getCompilerInfo();	int compilerType = info.getCompilerType();	if (compilerType == VM_CompilerInfo.OPT && 	    ((VM_OptCompilerInfo)info).getOptLevel() == optLevel) {	  double ns = numCountsForModel(counts[index]);	  collect.add(new VM_HotMethodRecompilationEvent(cmid, ns));	}		// Since I was hot enough, also consider my children.	collectHotOptNMethodsInternal(index * 2, collect, threshold, optLevel);	collectHotOptNMethodsInternal(index * 2 + 1, collect, threshold, optLevel);      }    }  }