diff options
author | jeff <jeff@FreeBSD.org> | 2008-03-19 07:13:24 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2008-03-19 07:13:24 +0000 |
commit | 4cd4553bb53da6eff2e16385db01ba95bd7d7266 (patch) | |
tree | c6e3b7daf968664cd89e965811151abeab9c38fa /sys/kern/subr_sleepqueue.c | |
parent | e846a1612b584a4d896189eb9ece9b3fa61d3878 (diff) | |
download | FreeBSD-src-4cd4553bb53da6eff2e16385db01ba95bd7d7266.zip FreeBSD-src-4cd4553bb53da6eff2e16385db01ba95bd7d7266.tar.gz |
- Fix the last of the threading bugs that were introduced as far back as
1.38 in 2001. Break out of the FOREACH_THREAD_IN_PROC loop when we've
discovered a new proc in the chain.
- Increment i and check for maxlockdepth once per matching process not
once per thread. This didn't properly terminate the loop before.
- Fix a bug which has existed potentially since rev 1.1. waitblock->lf_next
can be NULL when a thread has been woken-up but not yet scheduled. Check
for this condition rather than blindly dereferencing.
Found by: libMicro
Diffstat (limited to 'sys/kern/subr_sleepqueue.c')
0 files changed, 0 insertions, 0 deletions