changeset 11578:2e686a6403e3 HEAD

DEBUG: Removed buffer's tests against overflows. It slows down too much.
author Timo Sirainen <tss@iki.fi>
date Fri, 18 Jun 2010 16:28:14 +0100
parents 334d9b18f437
children 61708c33154d
files src/lib/buffer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib/buffer.c	Fri Jun 18 16:27:45 2010 +0100
+++ b/src/lib/buffer.c	Fri Jun 18 16:28:14 2010 +0100
@@ -63,7 +63,7 @@
 		buffer_alloc(buf, pool_get_exp_grown_size(buf->pool, buf->alloc,
 							  new_size));
 	}
-#ifdef DEBUG
+#if 0
 	else if (new_size > buf->used && buf->alloced &&
 		 !buf->pool->alloconly_pool && !buf->pool->datastack_pool) {
 		void *new_buf;