summaryrefslogtreecommitdiffstats
path: root/sys/vm/uma_dbg.h
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2002-05-02 09:07:04 +0000
committerjeff <jeff@FreeBSD.org>2002-05-02 09:07:04 +0000
commit6bfc4bdd9687d28dcbb4ee25d5de86b01147a23d (patch)
treed04d4200ce8e73582726b459fe3a5978841495d0 /sys/vm/uma_dbg.h
parentfb737bd04bbaa01e816c020910e4eb4f70ab02bb (diff)
downloadFreeBSD-src-6bfc4bdd9687d28dcbb4ee25d5de86b01147a23d.zip
FreeBSD-src-6bfc4bdd9687d28dcbb4ee25d5de86b01147a23d.tar.gz
Hide a pointer to the malloc_type bucket at the end of the freed memory. If
this memory is modified after it has been freed we can now report it's previous owner.
Diffstat (limited to 'sys/vm/uma_dbg.h')
-rw-r--r--sys/vm/uma_dbg.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/vm/uma_dbg.h b/sys/vm/uma_dbg.h
index fed04a6..7967a44 100644
--- a/sys/vm/uma_dbg.h
+++ b/sys/vm/uma_dbg.h
@@ -43,6 +43,13 @@ void trash_ctor(void *mem, int size, void *arg);
void trash_dtor(void *mem, int size, void *arg);
void trash_init(void *mem, int size);
void trash_fini(void *mem, int size);
+
+/* For use only by malloc */
+void mtrash_ctor(void *mem, int size, void *arg);
+void mtrash_dtor(void *mem, int size, void *arg);
+void mtrash_init(void *mem, int size);
+void mtrash_fini(void *mem, int size);
+
void uma_dbg_free(uma_zone_t zone, uma_slab_t slab, void *item);
void uma_dbg_alloc(uma_zone_t zone, uma_slab_t slab, void *item);
OpenPOWER on IntegriCloud