summaryrefslogtreecommitdiffstats
path: root/sys/vm/uma_dbg.c
Commit message (Collapse)AuthorAgeFilesLines
* Use __FBSDID().obrien2003-06-111-3/+2
|
* atomic_set_8 isn't MI. Instead, follow Jake's suggestions aboutmjacob2002-11-111-4/+2
| | | | ZONE_LOCK.
* Use atomic_set_8 on the us_freelist maps as they are not otherwisemjacob2002-11-101-2/+2
| | | | | | protected. Furthermore, in some RISC architectures with no normal byte operations, the surrounding 3 bytes are also affected by the read-modify-write that has to occur.
* - Use my freebsd email alias in the copyright.jeff2002-09-191-1/+1
| | | | - Remove redundant instances of my email alias in the file summary.
* - Split UMA_ZFLAG_OFFPAGE into UMA_ZFLAG_OFFPAGE and UMA_ZFLAG_HASH.jeff2002-09-181-4/+5
| | | | | | | - Remove all instances of the mallochash. - Stash the slab pointer in the vm page's object pointer when allocating from the kmem_obj. - Use the overloaded object pointer to find slabs for malloced memory.
* Remove unnecessary includes.jeff2002-07-051-2/+0
|
* The kernel printf does not have %ipeter2002-05-291-1/+1
|
* Hide a pointer to the malloc_type bucket at the end of the freed memory. Ifjeff2002-05-021-2/+77
| | | | | this memory is modified after it has been freed we can now report it's previous owner.
* malloc/free(9) no longer require Giant. Use the malloc_mtx to protect thejeff2002-05-021-0/+2
| | | | | | | mallochash. Mallochash is going to go away as soon as I introduce the kfree/kmalloc api and partially overhaul the malloc wrapper. This can't happen until all users of the malloc api that expect memory to be aligned on the size of the allocation are fixed.
* Remove the temporary alignment check in free().jeff2002-05-021-0/+95
| | | | | | | | | | | 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.
* Add a new UMA debugging facility. This will overwrite freed memory withjeff2002-04-301-0/+112
0xdeadc0de and then check for it just before memory is handed off as part of a new request. This will catch any post free/pre alloc modification of memory, as well as introduce errors for anything that tries to dereference it as a pointer. This code takes the form of special init, fini, ctor and dtor routines that are specificly used by malloc. It is in a seperate file because additional debugging aids will want to live here as well.
OpenPOWER on IntegriCloud