changeset 7484:96f724a4a1a0 HEAD

Use smaller sentries between allocations. Larger ones make "Growing memory pool" warnings pointless, because most of the space is wasted on sentries. A smaller sentry will still catch most of the buffer overflows.
author Timo Sirainen <tss@iki.fi>
date Sun, 04 May 2008 19:38:11 +0300
parents 591145eaaf87
children 8bed019c834d
files src/lib/mempool-alloconly.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib/mempool-alloconly.c	Sun May 04 19:19:23 2008 +0300
+++ b/src/lib/mempool-alloconly.c	Sun May 04 19:38:11 2008 +0300
@@ -46,7 +46,7 @@
 
 #ifdef DEBUG
 #  define CLEAR_CHR 0xde
-#  define SENTRY_COUNT (4*8)
+#  define SENTRY_COUNT 8
 #else
 #  define CLEAR_CHR 0
 #endif