public static boolean requestedOSR(int cmid) {
public static synchronized boolean requestedOSR(int cmid) {
  public static boolean requestedOSR(int cmid) {    VM_CompiledMethod cm = VM_CompiledMethods.getCompiledMethod(cmid);        // make sure that the cm in question is baseline-compiled    if (cm.getCompilerType() != VM_CompiledMethod.BASELINE) return false;     // OK; now check for an OSR plan     VM_Method m = cm.getMethod();    if (m == null) return false;    return planWithStatus(m,VM_ControllerPlan.OSR_BASE_2_OPT);  }