static boolean completedPlanWithOptLevel(VM_Method method, int optLevel) {
static synchronized boolean completedPlanWithOptLevel(VM_Method method, int optLevel) {
  static boolean completedPlanWithOptLevel(VM_Method method, int optLevel) {    LinkedList planList = findPlan(method);    if (planList != null) {      // iterate over the planList until we find a completed plan with the      // opt level passed      synchronized(planList) {	ListIterator iter = planList.listIterator();	while (iter.hasNext()) {	  VM_ControllerPlan curPlan = (VM_ControllerPlan) iter.next();	  if (curPlan.getStatus() == VM_ControllerPlan.COMPLETED &&	      curPlan.getCompPlan().options.getOptLevel() == optLevel) {	    return true;	  }	}      }    }    return false;  }