VM.sysWrite("GC Warning: Thread "); thread.dump(); VM.sysWrite(" reached point ",w); VM.sysWrite(" while holding lock ",id); VM.sysWrite(" ",name); VM.sysWrite(" at ", VM_Time.cyclesToMillis(diff)); VM.sysWriteln(" ms");
Log.write("GC Warning: Thread "); thread.dumpToLog(); Log.write(" reached point "); Log.write(w); Log.write(" while holding lock "); Log.write(id); Log.write(" "); Log.write(name); Log.write(" at "); Log.write(VM_Time.cyclesToMillis(diff)); Log.writeln(" ms");
  public void check (int w) {    if (!REPORT_SLOW) return;    if (Assert.VERIFY_ASSERTIONS) Assert._assert(VM_Thread.getCurrentThread() == thread);    long diff = (REPORT_SLOW) ? VM_Time.cycles() - start : 0;    boolean show = (verbose > 1) || (diff > SLOW_THRESHOLD);    if (show) {      VM.sysWrite("GC Warning: Thread ");      thread.dump();      VM.sysWrite(" reached point ",w);      VM.sysWrite(" while holding lock ",id);      VM.sysWrite(" ",name);      VM.sysWrite(" at ", VM_Time.cyclesToMillis(diff));      VM.sysWriteln(" ms");    }    where = w;  }