diff options
author | jeff <jeff@FreeBSD.org> | 2002-05-02 02:08:48 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2002-05-02 02:08:48 +0000 |
commit | b152d5fbb5c19a734918705720935da121992010 (patch) | |
tree | 3151c53a5a4481a8b9fedf0d8f1ab5cfaa46389f /sys/vm/uma_dbg.h | |
parent | c136e5d44278a6b1c5a93a71adab858b5e07503b (diff) | |
download | FreeBSD-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.h | 2 |
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 */ |