From: Timo Sirainen Date: Sun, 4 May 2008 16:38:11 +0000 (+0300) Subject: Use smaller sentries between allocations. Larger ones make "Growing memory X-Git-Tag: 1.1.rc5~18 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8e31e038ae271c7bb9c2fa24f039f3416dbfb291;p=thirdparty%2Fdovecot%2Fcore.git 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. --HG-- branch : HEAD --- diff --git a/src/lib/mempool-alloconly.c b/src/lib/mempool-alloconly.c index e8c1125163..0c44cb0dbe 100644 --- a/src/lib/mempool-alloconly.c +++ b/src/lib/mempool-alloconly.c @@ -46,7 +46,7 @@ struct pool_block { #ifdef DEBUG # define CLEAR_CHR 0xde -# define SENTRY_COUNT (4*8) +# define SENTRY_COUNT 8 #else # define CLEAR_CHR 0 #endif