Log.write("\nDumping stack starting at frame with bad ref:\n");
Log.writeln(); Log.writeln("Dumping stack starting at frame with bad ref:");
  private void checkReference(Address refaddr, int verbosity) {     ObjectReference ref = refaddr.loadObjectReference();    if (!MM_Interface.validRef(ref)) {      Log.write("\nInvalid ref reported while scanning stack\n");      printMethodHeader();      Log.write(refaddr); Log.write(":"); MM_Interface.dumpRef(ref);        dumpStackFrame(verbosity);      Log.write("\nDumping stack starting at frame with bad ref:\n");      VM_Scheduler.dumpStack(ip, fp);      /* dump stack starting at top */      Address top_ip = thread.contextRegisters.getInnermostInstructionAddress();      Address top_fp = thread.contextRegisters.getInnermostFramePointer();      VM_Scheduler.dumpStack(top_ip, top_fp);      VM.sysFail("\n\nVM_ScanStack: Detected bad GC map; exiting RVM with fatal error");    }  }