VM_OptCompilerInfo info = (VM_OptCompilerInfo)cm.getCompilerInfo(); info.applyCodePatches(cm);
  private void invalidate (VM_CompiledMethod cm) {    VM_Method m = cm.getMethod();    if (TRACE || DEBUG)      report("CLDM: Invalidating compiled method " + cm.getId() + "(" +           m + ")\n");    // (1) Blow away information about this now invalid compiled     // method being held on the VM_Method    m.clearMostRecentCompilation();    // (2) Reset all jtoc or TIB entries that point to the     // now invalid compiled method.    // TODO: replace this with a call to resetMethod(cm)    if (m.isStatic() || m.isObjectInitializer() || m.isClassInitializer()) {      // invalidate jtoc slot.      m.getDeclaringClass().resetStaticMethod(cm);      if (DEBUG)        report("\tReset jtoc slot\n");    } else {      // invalidate TIB entry      Stack s = new Stack();      s.push(m.getDeclaringClass());      while (!s.isEmpty()) {        VM_Class c = (VM_Class)s.pop();        if (DEBUG)          report("\tConsidering " + c + "\n");        if (c.isResolved()) {          c.resetTIBEntry(cm);          if (DEBUG)            report("\tReset tib entry for " + c + "\n");          VM_Class[] subClasses = c.getSubClasses();          for (int i = 0; i < subClasses.length; i++) {            s.push(subClasses[i]);          }        }      }    }  }