Date: Thu, 23 Dec 2004 20:38:35 GMT From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 67607 for review Message-ID: <200412232038.iBNKcZg1078132@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=67607 Change 67607 by jhb@jhb_slimer on 2004/12/23 20:38:31 Add an assertion. Affected files ... .. //depot/projects/smpng/sys/sys/mutex.h#46 edit Differences ... ==== //depot/projects/smpng/sys/sys/mutex.h#46 (text+ko) ==== @@ -182,8 +182,10 @@ critical_enter(); \ if ((mp)->mtx_lock == (uintptr_t)_tid) \ (mp)->mtx_recurse++; \ - else \ + else { \ + KASSERT((mp)->mtx_lock == MTX_UNOWNED, ("corrupt spinlock")); \ (mp)->mtx_lock = (uintptr_t)_tid; \ + } \ } while (0) #endif /* SMP */ #endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412232038.iBNKcZg1078132>