DragonFly commits List (threaded) for 2012-01
git: vkernel - Unbreak 32-bit vkernel builds by fixing broken assertion
Author: Matthew Dillon <email@example.com>
Date: Sun Jan 1 15:08:37 2012 -0800
vkernel - Unbreak 32-bit vkernel builds by fixing broken assertion
* [ASSERT_]MP_LOCK_HELD() was not properly handling the new token
* Rename and document the functions a bit better. Currently our
more expansive token test for (shared or exclusive) is not
a perfect test because we don't want to eat cpu time iterating
the thread's token array to check for shared tokens. So we just
check for a shared count.
Works well for assertions, wouldn't work very well for conditional
acquisition (of a shared token).
* Exclusive token tests are perfect.
Summary of changes:
sys/sys/mplock2.h | 4 ++--
sys/sys/thread.h | 10 +++++++---
sys/sys/thread2.h | 26 +++++++++++++++++++++++---
3 files changed, 32 insertions(+), 8 deletions(-)
DragonFly BSD source repository