if (VM.VerifyAssertions) VM.assert(NOT_REACHED, "Unknown Opt Level");
if (VM.VerifyAssertions) VM._assert(NOT_REACHED, "Unknown Opt Level");
  static void insert(VM_ControllerPlan plan) {    if (VM.LogAOSEvents) {      VM_Method method = plan.getCompPlan().getMethod();      numMethodsScheduledForRecomp++;      int optLevel = plan.getCompPlan().options.getOptLevel();      switch (optLevel) {      case 0:  numOpt0++; break;      case 1:  numOpt1++; break;      case 2:  numOpt2++; break;      case 3:  numOpt3++; break;      case 4:  numOpt4++; break;       default:	if (VM.VerifyAssertions) VM.assert(NOT_REACHED, "Unknown Opt Level");      }    }    // first check to see if there is a plan list for this method    LinkedList planList = findPlan(plan.getCompPlan().method);    if (planList == null) {      // create a plan list, with the single element being this plan      planList = new LinkedList();      // no synch needed here because the planList is not in the table yet      planList.addLast(plan);      // insert in the hashtable using the method ID as the hash value      table.put(new Integer(plan.getCompPlan().method.getDictionaryId()), 		planList);    } else {      // add the current plan to the end of the list      synchronized(planList) {	planList.addLast(plan);      }    }    // tell the plan what list it is on    plan.setPlanList(planList);  }  /**   * Looks for a controller plan for the passed method   *   * @param VM_Method the method to look for   * @return the list of controller plans for this method if one exists,    *         otherwise, null   */  static LinkedList findPlan(VM_Method method) {    return (LinkedList) table.get(new Integer(method.getDictionaryId()));  }