summaryrefslogtreecommitdiffstats
path: root/usr.bin/nl
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-05-04 17:15:16 +0000
committerjhb <jhb@FreeBSD.org>2001-05-04 17:15:16 +0000
commit21bc7f9fa7d25856003d9cf4871355c90b602c23 (patch)
treed86819558c830db5611e6cc1b273ac3a9e546272 /usr.bin/nl
parentd803e7dbf81e212591b59daaf7f91211e786d329 (diff)
downloadFreeBSD-src-21bc7f9fa7d25856003d9cf4871355c90b602c23.zip
FreeBSD-src-21bc7f9fa7d25856003d9cf4871355c90b602c23.tar.gz
- 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.
Diffstat (limited to 'usr.bin/nl')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud