diff options
author | Matthew Dempsky <matthew@cvs.openbsd.org> | 2010-09-24 13:21:31 +0000 |
---|---|---|
committer | Matthew Dempsky <matthew@cvs.openbsd.org> | 2010-09-24 13:21:31 +0000 |
commit | 7d41d2d54ec72e7e87c510b37c88a79f246c565e (patch) | |
tree | a4491d0a119e7c1d9e0fe4280dc229f9e3033dc3 /sys/arch/i386/include/reloc.h | |
parent | d2ebe13a412b859545811580c7b40e4f3c69544c (diff) |
Add stricter asserts to DIAGNOSTIC kernels to help catch mutex and
rwlock misuse. In particular, this commit makes the following
changes:
1. i386 and amd64 now count the number of active mutexes so that
assertwaitok(9) can detect attempts to sleep while holding a mutex.
2. i386 and amd64 check that we actually hold mutexes when passed to
mtx_leave().
3. Calls to rw_exit*() now call rw_assert_{rd,wr}lock() as
appropriate.
ok krw@, oga@; "sounds good to me" deraadt@; assembly bits double
checked by pirofti@
Diffstat (limited to 'sys/arch/i386/include/reloc.h')
0 files changed, 0 insertions, 0 deletions