Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys



Module Name:    src
Committed By:   ad
Date:           Sat May 31 13:36:25 UTC 2008

Modified Files:
        src/sys/kern: kern_condvar.c
        src/sys/sys: condvar.h

Log Message:
- Give each condition variable its own sleep queue head.  Helps the system
  to scale more gracefully when there are thousands of active threads.
  Proposed on tech-kern@.

- Use LOCKDEBUG to catch some errors in the use of condition variables:

  freeing an active CV
  re-initializing an active CV
  using multiple distinct mutexes during concurrent waits
  not holding the interlocking mutex when calling cv_broadcast/cv_signal
  waking waiters and destroying the CV before they run and exit it


To generate a diff of this commit:
cvs rdiff -r1.19 -r1.20 src/sys/kern/kern_condvar.c
cvs rdiff -r1.9 -r1.10 src/sys/sys/condvar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Home | Main Index | Thread Index | Old Index