aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/nl/Makefile
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2001-05-04 17:15:16 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2001-05-04 17:15:16 +0000
commit2d96f0b145f44beb48036b706b5ee51731ae4355 (patch)
tree26e4b75732e894586eb21f694348a91fe75e4dd0 /usr.bin/nl/Makefile
parentac07d659c3c3db1508db221e2ae39d851fef029d (diff)
downloadsrc-2d96f0b145f44beb48036b706b5ee51731ae4355.tar.gz
src-2d96f0b145f44beb48036b706b5ee51731ae4355.zip
- Move state about lock objects out of struct lock_object and into a new
struct lock_instance that is stored in the per-process and per-CPU lock lists. Previously, the lock lists just kept a pointer to each lock held. That pointer is now replaced by a lock instance which contains a pointer to the lock object, the file and line of the last acquisition of a lock, and various flags about a lock including its recursion count. - If we sleep while holding a sleepable lock, then mark that lock instance as having slept and ignore any lock order violations that occur while acquiring Giant when we wake up with slept locks. This is ok because of Giant's special nature. - Allow witness to differentiate between shared and exclusive locks and unlocks of a lock. Witness will now detect the case when a lock is acquired first in one mode and then in another. Mutexes are always locked and unlocked exclusively. Witness will also now detect the case where a process attempts to unlock a shared lock while holding an exclusive lock and vice versa. - Fix a bug in the lock list implementation where we used the wrong constant to detect the case where a lock list entry was full.
Notes
Notes: svn path=/head/; revision=76272
Diffstat (limited to 'usr.bin/nl/Makefile')
0 files changed, 0 insertions, 0 deletions