In cpu_sched_exit(), we must check vm_refcnt against 0, not 1, since

exit1() decrements the reference count before calling this function.
This commit is contained in:
tmm 2004-05-20 18:41:07 +00:00
parent a4cb820edf
commit c212d0a10a

View File

@ -131,7 +131,7 @@ cpu_sched_exit(struct thread *td)
p = td->td_proc;
vm = p->p_vmspace;
if (vm->vm_refcnt > 1)
if (vm->vm_refcnt > 0)
return;
SLIST_FOREACH(pc, &cpuhead, pc_allcpu) {
if (pc->pc_vmspace == vm) {