summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-05-20 17:49:46 +0000
committerjhb <jhb@FreeBSD.org>2002-05-20 17:49:46 +0000
commit4423d1f90a42798bc7f81936eefbcae74bcb0a63 (patch)
tree8fca41fe6c89ba512ef23eefe5f8070bddaa3515 /share
parentbb678d578d02468619b3bd655774c745c266e1ca (diff)
downloadFreeBSD-src-4423d1f90a42798bc7f81936eefbcae74bcb0a63.zip
FreeBSD-src-4423d1f90a42798bc7f81936eefbcae74bcb0a63.tar.gz
- Allow witness_sleep() to be called when witness hasn't been initialized
yet. We just return without performing any checks. - Don't explicitly enter and exit critical sections when walking lock lists. We don't need a critical section to walk the list of sleep locks for a thread. We check to see if a spin lock list is empty before we walk it. If the list is empty we don't need to walk it. If it isn't then we already hold at least one spin lock and are already in a critical section and thus don't need our own explicit critical section.
Diffstat (limited to 'share')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud