Add redzone and statistics reporting to debug allocator.
authorMichael Poole <mdpoole@troilus.org>
Fri, 21 Jan 2005 00:48:35 +0000 (00:48 +0000)
committerMichael Poole <mdpoole@troilus.org>
Fri, 21 Jan 2005 00:48:35 +0000 (00:48 +0000)
commit17a5d138f4afe234509d2b6d46a3e2fe1b933efc
tree2dee2448cb854e0b49157f2d1b6738a808ee708b
parent7c855bda1a9a9bd80ee53cb99f70dd50e6ee48c2
Add redzone and statistics reporting to debug allocator.

src/alloc-srvx.c (redzone): New variable to detect buffer overwrites.
(alloc_count, alloc_size): New variables to track allocation stats.
(srvx_malloc, srvx_realloc, srvx_free): Use the above.

src/opserv.c (OSMSG_STATS_MEMORY): New translation string.
(cmd_stats_memory): New (conditional) command function.
(init_opserv): Conditionally provide cmd_stats_memory.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-5
ChangeLog
src/alloc-srvx.c
src/opserv.c