From c212d0a10a9358cf903b6f1d0c27870d950a1e60 Mon Sep 17 00:00:00 2001 From: tmm Date: Thu, 20 May 2004 18:41:07 +0000 Subject: [PATCH] In cpu_sched_exit(), we must check vm_refcnt against 0, not 1, since exit1() decrements the reference count before calling this function. --- sys/sparc64/sparc64/vm_machdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/sparc64/sparc64/vm_machdep.c b/sys/sparc64/sparc64/vm_machdep.c index e2b785a7b3bb..0ba7b2d87ad3 100644 --- a/sys/sparc64/sparc64/vm_machdep.c +++ b/sys/sparc64/sparc64/vm_machdep.c @@ -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) {