getVm().allThreads.remove(thread);
final Vm vm = getVm(); final SpinLock lock = vm.allThreadsLock; final VmThreadQueue.AllThreadsQueue q = vm.allThreads; lock.lock(); try { q.remove(thread); } finally { lock.unlock(); }
    static final void unregisterThread(VmThread thread) {        getVm().allThreads.remove(thread);    }