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:15:21 UTC 2008

Modified Files:
        src/sys/kern: kern_lock.c kern_mutex.c kern_rwlock.c subr_lockdebug.c
        src/sys/sys: lockdebug.h

Log Message:
LOCKDEBUG:

- Tweak it so it can also catch common errors with condition variables.
  The change to kern_condvar.c is not included in this commit and will
  come later.

- Don't call kmem_alloc() if operating in interrupt context, just fail
  the allocation and disable debugging for the object. Makes it safe
  to do mutex_init/rw_init/cv_init in interrupt context, when running
  a LOCKDEBUG kernel.


To generate a diff of this commit:
cvs rdiff -r1.143 -r1.144 src/sys/kern/kern_lock.c
cvs rdiff -r1.41 -r1.42 src/sys/kern/kern_mutex.c
cvs rdiff -r1.24 -r1.25 src/sys/kern/kern_rwlock.c
cvs rdiff -r1.34 -r1.35 src/sys/kern/subr_lockdebug.c
cvs rdiff -r1.9 -r1.10 src/sys/sys/lockdebug.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