/** Dump the status of this queue on debug. */ @KernelSpace private final void dumpWaitingThreads(boolean dumpStack, VmStackReader stackReader) { VmThreadQueueEntry e = vmScheduler.getAllThreadsQueue().first; while (e != null) { if (e.thread.isWaiting()) { debug(e.thread.getName()); debug(" id0x"); debug(e.thread.getId()); debug(" s0x"); debug(e.thread.getThreadState()); debug(" p0x"); debug(e.thread.priority); debug(" wf:"); VmThread waitFor = e.thread.getWaitForThread(); debug((waitFor != null) ? waitFor.getName() : "none"); debug("\n"); if (dumpStack && (stackReader != null)) { stackReader.debugStackTrace(e.thread); debug("\n"); } } e = e.next; } }