Index: sys/pool.h =================================================================== RCS file: /cvs/src/sys/sys/pool.h,v retrieving revision 1.51 diff -u -p -r1.51 pool.h --- sys/pool.h 8 Sep 2014 00:05:22 -0000 1.51 +++ sys/pool.h 8 Sep 2014 00:17:52 -0000 @@ -119,7 +119,6 @@ struct pool { #define PR_LIMITFAIL 0x0004 /* M_CANFAIL */ #define PR_ZERO 0x0008 /* M_ZERO */ #define PR_WANTED 0x0100 -#define PR_DEBUG 0x0800 #define PR_DEBUGCHK 0x1000 int pr_ipl; Index: kern/subr_pool.c =================================================================== RCS file: /cvs/src/sys/kern/subr_pool.c,v retrieving revision 1.151 diff -u -p -r1.151 subr_pool.c --- kern/subr_pool.c 8 Sep 2014 00:00:05 -0000 1.151 +++ kern/subr_pool.c 8 Sep 2014 00:17:52 -0000 @@ -268,11 +268,6 @@ pool_init(struct pool *pp, size_t size, KASSERT(ioff == 0); #endif -#ifdef MALLOC_DEBUG - if ((flags & PR_DEBUG) && align != 0) - flags &= ~PR_DEBUG; -#endif - if (align == 0) align = ALIGN(1); @@ -515,17 +510,6 @@ pool_do_get(struct pool *pp, int flags) void *v; int slowdown = 0; -#ifdef MALLOC_DEBUG - if (pp->pr_roflags & PR_DEBUG) { - void *addr; - - addr = NULL; - debug_malloc(pp->pr_size, M_DEBUG, - (flags & PR_WAITOK) ? M_WAITOK : M_NOWAIT, &addr); - return (addr); - } -#endif - startover: /* * Check to see if we've reached the hard limit. If we have, @@ -729,13 +713,6 @@ pool_do_put(struct pool *pp, void *v) if (v == NULL) panic("pool_put of NULL"); - -#ifdef MALLOC_DEBUG - if (pp->pr_roflags & PR_DEBUG) { - debug_free(v, M_DEBUG); - return; - } -#endif #ifdef DIAGNOSTIC if (pp->pr_ipl != -1)