[dovecot-cvs] dovecot/src/lib data-stack.c, 1.24, 1.25 mempool-alloconly.c, 1.36, 1.37 mempool-system.c, 1.18, 1.19

cras at dovecot.org cras at dovecot.org
Sun Sep 10 20:49:11 EEST 2006


Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv31746

Modified Files:
	data-stack.c mempool-alloconly.c mempool-system.c 
Log Message:
Fixes for using GC



Index: data-stack.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/data-stack.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- data-stack.c	13 Jan 2006 20:26:01 -0000	1.24
+++ data-stack.c	10 Sep 2006 17:49:08 -0000	1.25
@@ -189,7 +189,7 @@
 #ifndef USE_GC
 	block = malloc(SIZEOF_MEMBLOCK + alloc_size);
 #else
-	block = GC_malloc_atomic(SIZEOF_MEMBLOCK + alloc_size);
+	block = GC_malloc(SIZEOF_MEMBLOCK + alloc_size);
 #endif
 	if (block == NULL) {
 		i_fatal_status(FATAL_OUTOFMEM, "mem_block_alloc(): "

Index: mempool-alloconly.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/mempool-alloconly.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- mempool-alloconly.c	8 Jun 2006 16:50:42 -0000	1.36
+++ mempool-alloconly.c	10 Sep 2006 17:49:08 -0000	1.37
@@ -188,7 +188,6 @@
 	block = calloc(size, 1);
 #else
 	block = GC_malloc(size);
-	memset(block, 0, size);
 #endif
 	if (block == NULL)
 		i_fatal_status(FATAL_OUTOFMEM, "block_alloc(): Out of memory");

Index: mempool-system.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/mempool-system.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- mempool-system.c	14 Jan 2006 17:23:22 -0000	1.18
+++ mempool-system.c	10 Sep 2006 17:49:08 -0000	1.19
@@ -67,7 +67,6 @@
 	mem = calloc(size, 1);
 #else
 	mem = GC_malloc(size);
-	memset(mem, 0, size);
 #endif
 	if (mem == NULL) {
 		i_fatal_status(FATAL_OUTOFMEM,



More information about the dovecot-cvs mailing list