Author: rodrigc
Date: Mon Dec 2 18:20:07 2013
New Revision: 258852
URL: http://svnweb.freebsd.org/changeset/base/258852
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
Modified:
stable/9/sys/vm/uma_core.c
Directory Properties:
stable/9/sys/ (props changed)
Modified: stable/9/sys/vm/uma_core.c
==============================================================================
--- stable/9/sys/vm/uma_core.c Mon Dec 2 17:45:43 2013 (r258851)
+++ stable/9/sys/vm/uma_core.c Mon Dec 2 18:20:07 2013 (r258852)
@@ -1509,8 +1509,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);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "[email protected]"