diff options
-rw-r--r-- | sys/kern/kern_kse.c | 2 | ||||
-rw-r--r-- | sys/kern/kern_thread.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_kse.c b/sys/kern/kern_kse.c index 1a3ae43..3adc8ae 100644 --- a/sys/kern/kern_kse.c +++ b/sys/kern/kern_kse.c @@ -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); diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index 1a3ae43..3adc8ae 100644 --- a/sys/kern/kern_thread.c +++ b/sys/kern/kern_thread.c @@ -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); |