Source-Changes archive

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

CVS commit: [newlock] syssrc/sys



Module Name:    syssrc
Committed By:   thorpej
Date:           Fri Mar 22 00:15:55 UTC 2002

Modified Files:
        syssrc/sys/kern [newlock]: kern_mutex.c
        syssrc/sys/sys [newlock]: mutex.h

Log Message:
Add some minimal mutex debugging infrastructure.
* struct mutex_debug_info, which MD code adds to the kmutex_t
  when MUTEX_DEBUG is defined, contains the PC values of the
  last-locked and last-unlocked.
* MD code is expected to set last-locked in the enter fast path.
* MD code is expected to always call mutex_vector_exit() in the
  exit case.

Note: this code relies on MD code performing a tail-call to the
slow-path.


To generate a diff of this commit:
cvs rdiff -r1.1.2.6 -r1.1.2.7 syssrc/sys/kern/kern_mutex.c
cvs rdiff -r1.1.2.6 -r1.1.2.7 syssrc/sys/sys/mutex.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