VM_CompiledMethods.setCompiledMethod(compiledMethod.getId(), compiledMethod);   VM_CompiledMethod	previouslyGeneratedCompiledMethod = this.mostRecentlyGeneratedCompiledMethod; this.mostRecentlyGeneratedInstructions = compiledMethod.getInstructions(); this.mostRecentlyGeneratedCompiledMethod = compiledMethod;     this.getDeclaringClass().resetMethod(this, true);   VM_CompiledMethods.setCompiledMethodObsolete( previouslyGeneratedCompiledMethod );  }
if (compiledMethod != null) { synchronized(compiledMethod) { if (compiledMethod.isInvalid()) return; } }
  public final void replaceCompiledMethod(VM_CompiledMethod compiledMethod) throws VM_ResolutionException {    if (VM.VerifyAssertions) VM.assert(isLoaded());    VM_CompiledMethods.setCompiledMethod(compiledMethod.getId(), compiledMethod);    // Grab ahold of version that is being replaced    VM_CompiledMethod	previouslyGeneratedCompiledMethod =				this.mostRecentlyGeneratedCompiledMethod;    this.mostRecentlyGeneratedInstructions = compiledMethod.getInstructions();    this.mostRecentlyGeneratedCompiledMethod = compiledMethod;    // Install the new method in jtoc/tib. If virtual, will also replace in    // all subclasses that inherited the method.    this.getDeclaringClass().resetMethod(this, true);    // Now that we've updated the jtoc/tib, old version is now obsolete    VM_CompiledMethods.setCompiledMethodObsolete( previouslyGeneratedCompiledMethod );  }