Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Jun 2002 17:08:44 -0700 (PDT)
From:      Julian Elischer <julian@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 12785 for review
Message-ID:  <200206130008.g5D08iZ50628@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=12785

Change 12785 by julian@julian_jules1 on 2002/06/12 17:08:09

	safety save

Affected files ...

... //depot/projects/kse/sys/kern/kern_thread.c#61 edit

Differences ...

==== //depot/projects/kse/sys/kern/kern_thread.c#61 (text+ko) ====

@@ -303,6 +303,8 @@
 
 	td = curthread;
 	ke = td->td_kse;
+	PROC_LOCK_ASSERT(td->td_proc, MA_UNOWNED);
+	PROC_LOCK(td->td_proc);
 	CTR1(KTR_PROC, "thread_exit: thread %p", td);
 	KASSERT(!mtx_owned(&Giant), ("dying thread owns giant"));
 
@@ -315,6 +317,7 @@
 	}
 	cpu_thread_exit(td);	/* XXXSMP */
 	thread_unlink(td);
+	PROC_UNLOCK(td->td_proc);
 	ke->ke_tdspare = td;
 	cpu_throw();
 	/* NOTREACHED */

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206130008.g5D08iZ50628>