VM.sysWrite("\n-- System Queues -- \n");   wakeupQueue.dump();
VM.sysWrite("\n-- System Queues -- \n");
  public static void dumpVirtualMachine()     throws InterruptiblePragma  {    VM_Processor processor;    VM.sysWrite("\n-- Processors --\n");    for (int i = 1; i <= numProcessors; ++i) {      processor = processors[i];      processor.dumpProcessorState();    }    // system queues        VM.sysWrite("\n-- System Queues -- \n");   wakeupQueue.dump();    VM.sysWrite(" wakeupQueue: ");   wakeupQueue.dump();    VM.sysWrite(" debuggerQueue: "); debuggerQueue.dump();    VM.sysWrite(" deadVPQueue: ");     deadVPQueue.dump();    VM.sysWrite(" collectorQueue: ");   collectorQueue.dump();    VM.sysWrite(" finalizerQueue: ");   finalizerQueue.dump();    VM.sysWrite("\n-- Threads --\n");    for (int i = 1; i < threads.length; ++i) {      if (threads[i] != null) {        threads[i].dump();        VM.sysWrite("\n");      }    }    VM.sysWrite("\n");    VM.sysWrite("\n-- Locks available --\n");    for (int i = PRIMORDIAL_PROCESSOR_ID; i <= numProcessors; ++i) {      processor = processors[i];      int unallocated = processor.lastLockIndex - processor.nextLockIndex + 1;      VM.sysWrite(" processor ");             VM.sysWriteInt(i); VM.sysWrite(": ");      VM.sysWriteInt(processor.locksAllocated); VM.sysWrite(" locks allocated, ");      VM.sysWriteInt(processor.locksFreed);     VM.sysWrite(" locks freed, ");      VM.sysWriteInt(processor.freeLocks);      VM.sysWrite(" free looks, ");      VM.sysWriteInt(unallocated);              VM.sysWrite(" unallocated slots\n");    }    VM.sysWrite("\n");    VM.sysWrite("\n-- Locks in use --\n");    for (int i = 0; i < locks.length; ++i)      if (locks[i] != null)        locks[i].dump();    VM.sysWrite("\n");  }