git: vkernel - Unbreak 32-bit vkernel builds by fixing broken assertion
Matthew Dillon
dillon at crater.dragonflybsd.org
Sun Jan 1 15:11:19 PST 2012
commit 01672f8c3a3fd28ea54576da47af9f0521fd01f3
Author: Matthew Dillon <dillon at apollo.backplane.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
t_count format.
* 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.
Reported-by: tuxillo
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(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/01672f8c3a3fd28ea54576da47af9f0521fd01f3
--
DragonFly BSD source repository
More information about the Commits
mailing list