static void doDeferredSpecializations() {
static synchronized void doDeferredSpecializations() {
  static void doDeferredSpecializations() {    // prevent recursive entry to this method    if (specializationInProgress)      return;    specializationInProgress = true;    Iterator methods = deferredMethods.iterator();    while (methods.hasNext()) {      OPT_SpecializedMethod m = (OPT_SpecializedMethod)methods.next();      if (m.getCompiledMethod() == null) {        m.compile();        registerCompiledMethod(m);      }      deferredMethods.remove(m);      // since we modified the set, reset the iterator.        // TODO: use a better abstraction       // (ModifiableSetIterator of some kind?)      methods = deferredMethods.iterator();    }    specializationInProgress = false;  }