public synchronized static void snipObsoleteCompiledMethods() { if (obsoleteMethods == null) return;
public static void snipObsoleteCompiledMethods() { VM_Magic.isync(); if (!scanForObsoleteMethods) return; scanForObsoleteMethods = false; VM_Magic.sync();
  public synchronized static void snipObsoleteCompiledMethods() {    if (obsoleteMethods == null) return;        int oldCount = obsoleteMethodCount;    obsoleteMethodCount = 0;    for (int i = 0; i < oldCount; i++) {      int currCM = obsoleteMethods[i];      if (compiledMethods[currCM].isObsolete()) {        compiledMethods[currCM] = null;         // break the link      } else {        obsoleteMethods[obsoleteMethodCount++] = currCM; // keep it        compiledMethods[currCM].setObsolete(true);       // maybe next time      }    }  }