summaryrefslogtreecommitdiffstats
path: root/sys/vm/uma_dbg.h
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2002-05-02 02:08:48 +0000
committerjeff <jeff@FreeBSD.org>2002-05-02 02:08:48 +0000
commitb152d5fbb5c19a734918705720935da121992010 (patch)
tree3151c53a5a4481a8b9fedf0d8f1ab5cfaa46389f /sys/vm/uma_dbg.h
parentc136e5d44278a6b1c5a93a71adab858b5e07503b (diff)
downloadFreeBSD-src-b152d5fbb5c19a734918705720935da121992010.zip
FreeBSD-src-b152d5fbb5c19a734918705720935da121992010.tar.gz
Remove the temporary alignment check in free().
Implement the following checks on freed memory in the bucket path: - Slab membership - Alignment - Duplicate free This previously was only done if we skipped the buckets. This code will slow down INVARIANTS a bit, but it is smp safe. The checks were moved out of the normal path and into hooks supplied in uma_dbg.
Diffstat (limited to 'sys/vm/uma_dbg.h')
-rw-r--r--sys/vm/uma_dbg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/vm/uma_dbg.h b/sys/vm/uma_dbg.h
index 126dc57..fed04a6 100644
--- a/sys/vm/uma_dbg.h
+++ b/sys/vm/uma_dbg.h
@@ -43,5 +43,7 @@ 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);
+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);
#endif /* VM_UMA_DBG_H */
OpenPOWER on IntegriCloud