[dovecot-cvs] dovecot/src/lib mempool-alloconly.c,1.12,1.13
cras at procontrol.fi
cras at procontrol.fi
Sat Dec 21 15:12:18 EET 2002
- Previous message: [dovecot-cvs] dovecot/src/lib Makefile.am,1.22,1.23 env-util.c,1.4,1.5 imem.c,1.3,1.4 mempool-alloconly.c,1.11,1.12 mempool.h,1.5,1.6 mempool.c,1.3,NONE
- Next message: [dovecot-cvs] dovecot/src/lib ioloop-select.c,1.6,1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/dovecot/src/lib
In directory danu:/tmp/cvs-serv14490/lib
Modified Files:
mempool-alloconly.c
Log Message:
DEBUG: warn when growing pool
Index: mempool-alloconly.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib/mempool-alloconly.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- mempool-alloconly.c 21 Dec 2002 13:08:49 -0000 1.12
+++ mempool-alloconly.c 21 Dec 2002 13:12:16 -0000 1.13
@@ -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");
- Previous message: [dovecot-cvs] dovecot/src/lib Makefile.am,1.22,1.23 env-util.c,1.4,1.5 imem.c,1.3,1.4 mempool-alloconly.c,1.11,1.12 mempool.h,1.5,1.6 mempool.c,1.3,NONE
- Next message: [dovecot-cvs] dovecot/src/lib ioloop-select.c,1.6,1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list