Use mtx_assert() rather than using a home-rolled version.

This commit is contained in:
jhb 2004-01-28 20:26:39 +00:00
parent b329bb8a2c
commit 45e377d906
2 changed files with 2 additions and 2 deletions

View File

@ -1255,7 +1255,7 @@ thread_exit(void)
KASSERT(kg != NULL, ("thread exiting without a kse group"));
PROC_LOCK_ASSERT(p, MA_OWNED);
CTR1(KTR_PROC, "thread_exit: thread %p", td);
KASSERT(!mtx_owned(&Giant), ("dying thread owns giant"));
mtx_assert(&Giant, MA_NOTOWNED);
if (td->td_standin != NULL) {
thread_stash(td->td_standin);

View File

@ -1255,7 +1255,7 @@ thread_exit(void)
KASSERT(kg != NULL, ("thread exiting without a kse group"));
PROC_LOCK_ASSERT(p, MA_OWNED);
CTR1(KTR_PROC, "thread_exit: thread %p", td);
KASSERT(!mtx_owned(&Giant), ("dying thread owns giant"));
mtx_assert(&Giant, MA_NOTOWNED);
if (td->td_standin != NULL) {
thread_stash(td->td_standin);