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: ozaki-r
Date: Fri Apr 19 01:52:56 UTC 2019
Modified Files:
src/sys/kern: kern_lwp.c kern_softint.c subr_psref.c
src/sys/rump/kern/lib/libsysproxy: sysproxy.c
src/sys/sys: lwp.h userret.h
Log Message:
Implement a simple psref leak detector
It detects leaks by counting up the number of held psref by an LWP and checking
its zeroness at the end of syscalls and softint handlers. For the counter, a
unused field of struct lwp is reused.
The detector runs only if DIAGNOSTIC is turned on.
To generate a diff of this commit:
cvs rdiff -u -r1.196 -r1.197 src/sys/kern/kern_lwp.c
cvs rdiff -u -r1.45 -r1.46 src/sys/kern/kern_softint.c
cvs rdiff -u -r1.11 -r1.12 src/sys/kern/subr_psref.c
cvs rdiff -u -r1.5 -r1.6 src/sys/rump/kern/lib/libsysproxy/sysproxy.c
cvs rdiff -u -r1.181 -r1.182 src/sys/sys/lwp.h
cvs rdiff -u -r1.26 -r1.27 src/sys/sys/userret.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