svn commit: r258911 - stable/10/sys/vm
Craig Rodrigues
rodrigc at FreeBSD.org
Wed Dec 4 07:46:53 UTC 2013
Author: rodrigc
Date: Wed Dec 4 07:46:53 2013
New Revision: 258911
URL: http://svnweb.freebsd.org/changeset/base/258911
Log:
MFC r258737
In keg_dtor(), print out the keg name in the "Freed UMA keg was not empty"
message printed to the console. This makes it easier to track down
the source of certain memory leaks.
Suggested by: adrian
Approved by: re (gjb)
Modified:
stable/10/sys/vm/uma_core.c
Directory Properties:
stable/10/sys/ (props changed)
Modified: stable/10/sys/vm/uma_core.c
==============================================================================
--- stable/10/sys/vm/uma_core.c Wed Dec 4 07:45:08 2013 (r258910)
+++ stable/10/sys/vm/uma_core.c Wed Dec 4 07:46:53 2013 (r258911)
@@ -1571,8 +1571,9 @@ keg_dtor(void *arg, int size, void *udat
keg = (uma_keg_t)arg;
KEG_LOCK(keg);
if (keg->uk_free != 0) {
- printf("Freed UMA keg was not empty (%d items). "
+ printf("Freed UMA keg (%s) was not empty (%d items). "
" Lost %d pages of memory.\n",
+ keg->uk_name ? keg->uk_name : "",
keg->uk_free, keg->uk_pages);
}
KEG_UNLOCK(keg);
More information about the svn-src-stable-10
mailing list