changeset 826:ca927eb6202f HEAD

DEBUG: warn when growing pool
author Timo Sirainen <tss@iki.fi>
date Sat, 21 Dec 2002 15:12:16 +0200
parents 8afbafd5deac
children 0450b8c216e8
files src/lib/mempool-alloconly.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib/mempool-alloconly.c	Sat Dec 21 15:08:49 2002 +0200
+++ b/src/lib/mempool-alloconly.c	Sat Dec 21 15:12:16 2002 +0200
@@ -146,6 +146,13 @@
 		size += SIZEOF_POOLBLOCK;
 	size = nearest_power(size);
 
+#ifdef DEBUG
+	if (apool->block != NULL) {
+		i_warning("Growing pool '%s' with: %"PRIuSIZE_T,
+			  apool->name, size);
+	}
+#endif
+
 	block = calloc(size, 1);
 	if (block == NULL)
 		i_panic("block_alloc(): Out of memory");