if (VM.LogAOSEvents) VM_AOSLogging.oldVersionStillHot(hme); VM_Controller.methodSamples.reset(hme.getCMID());
transferSamplesToNewPlan(hme);
  boolean considerForRecompilation(VM_HotMethodEvent hme, 				   VM_ControllerPlan plan) {    VM_Method method = hme.getMethod();    if (plan == null) {      // Our caller did not find a matching plan for this compiled method.      // Therefore the code was not generated by the AOS recompilation subsystem.       if (VM_ControllerMemory.shouldConsiderForInitialRecompilation(method)) {	// AOS has not already taken action to address the situation 	// (or it attempted to take action, and the attempt failed in a way	//  that doesn't preclude trying again,	//  for example the compilation queue could have been full).  	return true;      } else {	// AOS has already taken action to address the situation, and thus	// we need to handle this as an old compiled version of a         // method still being live on some thread's stack.	if (VM.LogAOSEvents) VM_AOSLogging.oldVersionStillHot(hme); 	VM_Controller.methodSamples.reset(hme.getCMID());	return false;      }    } else {      // A matching plan was found.      if (plan.getStatus() == VM_ControllerPlan.OUTDATED || 	  VM_ControllerMemory.planWithStatus(method, 					     VM_ControllerPlan.IN_PROGRESS)) {	// (a) The HotMethodEvent actually corresponds to an         // old compiled version of the method	// that is still live on some thread's stack or         // (b) AOS has already initiated a plan that hasn't	// completed yet to address the situation.         // Therefore don't initiate a new recompilation action.	if (VM.LogAOSEvents) VM_AOSLogging.oldVersionStillHot(hme); 	VM_Controller.methodSamples.reset(hme.getCMID());	return false;      }      if (VM_ControllerMemory.planWithStatus(method, 					     VM_ControllerPlan.ABORTED_COMPILATION_ERROR)) {	// AOS failed to successfully recompile this method before.          // Don't try it again.	return false;      }      return true;    }  }