Rearrange slab allocation header; minor slab fixes.
authorMichael Poole <mdpoole@troilus.org>
Sat, 5 Feb 2005 13:03:21 +0000 (13:03 +0000)
committerMichael Poole <mdpoole@troilus.org>
Sat, 5 Feb 2005 13:03:21 +0000 (13:03 +0000)
commitb4b9ae8af08c3b11cbd6721c3cb4e33da2dee441
treea27724972ab243e299f49f8b8d29e9bf626c026e
parent4303ae75205bacb099348b0f108b81e19c841498
Rearrange slab allocation header; minor slab fixes.

src/alloc-slab.c (ALLOC_MAGIC, FREE_MAGIC): Replace with single-byte values.
(struct alloc_header): Move file_id and line into second 32-bit word
of header.
(slab_alloc): Remove commented-out debug statements.
(slab_unalloc): Remove memset() of freed block and commented-out debug
statements.
(slab_free): memset() freed blocks here instead.  Try to fix
*_alloc_size counting errors (use the originally requested length
rather than rounded-up length)
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-15
ChangeLog
src/alloc-slab.c