/** If CM is the current compiled code for this, then invalidate it. */
 public final synchronized void invalidateCompiledMethod(CompiledMethod cm) {
   if (VM.VerifyAssertions) VM._assert(getDeclaringClass().isInstantiated());
   if (currentCompiledMethod == cm) {
     replaceCompiledMethod(null);
   }
 }