diff options
author | 2010-09-24 13:21:30 +0000 | |
---|---|---|
committer | 2010-09-24 13:21:30 +0000 | |
commit | 521499f757d386f396b252cd66294c4d5edfca3a (patch) | |
tree | 5653e58a8172f61dafec5a6e3e4a11c601e02d2e /gnu/usr.bin/perl/cpan/Module-Build/lib/Module | |
parent | hook iscsid and iscsictl into the build. (diff) | |
download | wireguard-openbsd-521499f757d386f396b252cd66294c4d5edfca3a.tar.xz wireguard-openbsd-521499f757d386f396b252cd66294c4d5edfca3a.zip |
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 'gnu/usr.bin/perl/cpan/Module-Build/lib/Module')
0 files changed, 0 insertions, 0 deletions