diff options
author | jhb <jhb@FreeBSD.org> | 2002-05-20 17:49:46 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-05-20 17:49:46 +0000 |
commit | 4423d1f90a42798bc7f81936eefbcae74bcb0a63 (patch) | |
tree | 8fca41fe6c89ba512ef23eefe5f8070bddaa3515 /sys/kern/kern_malloc.c | |
parent | bb678d578d02468619b3bd655774c745c266e1ca (diff) | |
download | FreeBSD-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 'sys/kern/kern_malloc.c')
0 files changed, 0 insertions, 0 deletions