Date: Tue, 30 Apr 2002 00:54:26 -0700 (PDT) From: Jeff Roberson <jeff@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/conf files src/sys/kern kern_malloc.c src/sys/vm uma_dbg.c uma_dbg.h Message-ID: <200204300754.g3U7sQj40182@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
jeff 2002/04/30 00:54:26 PDT
Modified files:
sys/conf files
sys/kern kern_malloc.c
Added files:
sys/vm uma_dbg.c uma_dbg.h
Log:
Add a new UMA debugging facility. This will overwrite freed memory with
0xdeadc0de and then check for it just before memory is handed off as part
of a new request. This will catch any post free/pre alloc modification of
memory, as well as introduce errors for anything that tries to dereference
it as a pointer.
This code takes the form of special init, fini, ctor and dtor routines that
are specificly used by malloc. It is in a seperate file because additional
debugging aids will want to live here as well.
Revision Changes Path
1.630 +1 -0 src/sys/conf/files
1.104 +8 -2 src/sys/kern/kern_malloc.c
1.1 +112 -0 src/sys/vm/uma_dbg.c (new)
1.1 +47 -0 src/sys/vm/uma_dbg.h (new)
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204300754.g3U7sQj40182>
