readyQueue.enqueue(thread, ignorePriority);
sleepQueue.remove(thread); readyQueue.add(thread, ignorePriority, caller);
    final void addToReadyQueue(VmThread thread, boolean ignorePriority) {        try {            // Get access to queues            queueLock.lock();            if (thread.isRunning() || thread.isYielding()) {                readyQueue.enqueue(thread, ignorePriority);            } else {                Unsafe                        .debug("Thread must be in running state to add to ready queue, not ");                Unsafe.debug(thread.getThreadState());                architecture.getStackReader().debugStackTrace();                Unsafe.die("addToReadyQueue");            }        } finally {            // Release access to queues            queueLock.unlock();        }    }