if (VM.VerifyAssertions) VM.assert(compilationInProgress, "Failed to acquire compilationInProgress \"lock\"");
if (VM.VerifyAssertions) VM._assert(compilationInProgress, "Failed to acquire compilationInProgress \"lock\"");
  private static VM_CompiledMethod optCompile(VM_Method method, OPT_CompilationPlan plan) throws OPT_OptimizingCompilerException {    if (VM.VerifyAssertions) VM.assert(compilationInProgress, "Failed to acquire compilationInProgress \"lock\"");        Timer timer = null; // Only used if VM.MeasureCompilation     if (VM.MeasureCompilation) {      timer = new Timer();      timer.start();    }    //-#if RVM_FOR_IA32    VM_CompiledMethod cm = OPT_Compiler.compile(plan);    //-#endif    //-#if RVM_FOR_POWERPC          // only handle OPT_PatchPointGuardedInliningException here,    // see also OPT_Assembler.java    VM_CompiledMethod cm = null;    try {      cm = OPT_Compiler.compile(plan);    } catch (OPT_PatchPointGuardedInliningException pe) {      // aha, don't give up, turn IG_PATCH_POINT to IG_METHOD_TEST      // and compile again      plan.options = (OPT_Options)plan.options.clone();      plan.options.INLINING_GUARD = OPT_Options.IG_METHOD_TEST;      cm = OPT_Compiler.compile(plan);    }    //-#endif    if (VM.MeasureCompilation) {      timer.finish();      record(OPT_COMPILER, method, cm, timer);    }    return cm;  }