protected VM_CompiledMethod genCode() {
protected synchronized VM_CompiledMethod genCode() {
  protected VM_CompiledMethod genCode() {    if (!resolveNativeMethod()) {      // if fail to resolve native, get code to throw unsatifiedLinkError      VM_Entrypoints.unimplementedNativeMethodMethod.compile();      return VM_Entrypoints.unimplementedNativeMethodMethod.getCurrentCompiledMethod();    } else {      if (VM.writingBootImage) {        return VM_BootImageCompiler.compile(this);      } else {        return VM_RuntimeCompiler.compile(this);      }    }  }