getVm().allThreads.add(thread, true, "Vm");
final Vm vm = getVm(); final VmThreadQueue.AllThreadsQueue q = vm.allThreads; if (isWritingImage()) { q.add(thread, "Vm"); } else { final SpinLock lock = vm.allThreadsLock; lock.lock(); try { q.add(thread, "Vm"); } finally { lock.unlock(); } }
    static final void registerThread(VmThread thread) {        getVm().allThreads.add(thread, true, "Vm");    }