options = VM_RuntimeCompiler.options; optimizationPlan = VM_RuntimeCompiler.optimizationPlan;
options = (OPT_Options)VM_RuntimeCompiler.options; optimizationPlan = (OPT_OptimizationPlanElement[])VM_RuntimeCompiler.optimizationPlan;
  public void process() {        VM_CompiledMethod compiledMethod = VM_CompiledMethods.getCompiledMethod(CMID);        VM_NormalMethod todoMethod = (VM_NormalMethod)compiledMethod.getMethod();    double priority;    OPT_Options options;    OPT_OptimizationPlanElement[] optimizationPlan;      VM_ControllerPlan oldPlan = VM_ControllerMemory.findLatestPlan(todoMethod);    if (oldPlan != null) {      OPT_CompilationPlan oldCompPlan = oldPlan.getCompPlan();      priority = oldPlan.getPriority();      options = oldCompPlan.options;      optimizationPlan = oldCompPlan.optimizationPlan;    } else {      priority = 5.0;      options = VM_RuntimeCompiler.options;      optimizationPlan = VM_RuntimeCompiler.optimizationPlan;    }    OPT_CompilationPlan compPlan =       new OPT_CompilationPlan(todoMethod,                              optimizationPlan,                              null,                              options);      OSR_OnStackReplacementPlan plan =       new OSR_OnStackReplacementPlan(this.suspendedThread,                                     compPlan,                                     this.CMID,                                     this.whereFrom,                                     this.tsFromFPoff,                                     this.ypTakenFPoff,                                     priority);        VM_Controller.compilationQueue.insert(priority, plan);    VM_AOSLogging.logOsrEvent("OSR inserts compilation plan successfully!");    // do not hold the reference anymore.    suspendedThread = null;    CMID = 0;  }