case WAITING: {  wakeUpByScheduler();  proc.getScheduler().addToReadyQueue(this, false, "thread.interrupt"); }
case WAITING_ENTER: case WAITING_NOTIFY: case WAITING_NOTIFY_TIMEOUT: {  wakeUpByScheduler();  proc.getScheduler().addToReadyQueue(this, false, "thread.interrupt"); }
    public final void interrupt() throws UninterruptiblePragma {        // Set interrupted state        this.interrupted = true;        // Add to scheduler queue        final VmProcessor proc = VmMagic.currentProcessor();        proc.disableReschedule(true);        try {            switch (threadState) {            case ASLEEP:            case WAITING:                {                    // Remove from queues                    wakeUpByScheduler();                    // Add to ready queue                    proc.getScheduler().addToReadyQueue(this, false, "thread.interrupt");                }                break;            }        } finally {            proc.enableReschedule(true);        }    }