DragonFly BSD
DragonFly commits List (threaded) for 2012-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: vkernel - Unbreak 32-bit vkernel builds by fixing broken assertion


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 1 Jan 2012 15:11:19 -0800 (PST)

commit 01672f8c3a3fd28ea54576da47af9f0521fd01f3
Author: Matthew Dillon <dillon@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]