VM_CompiledMethod oldCompiledMethod = currentCompiledMethod; currentCompiledMethod = compiledMethod;    getDeclaringClass().updateMethod(this);   if (oldCompiledMethod != null) { VM_CompiledMethods.setCompiledMethodObsolete(oldCompiledMethod); } }
  public final synchronized void replaceCompiledMethod(VM_CompiledMethod compiledMethod) {    if (VM.VerifyAssertions) VM.assert(isLoaded());    // If we're replacing with a non-null compiledMethod, ensure that is still valid!    if (compiledMethod != null) {      synchronized(compiledMethod) {	if (compiledMethod.isInvalid()) return;      }    }