diff options
author | drh <drh@noemail.net> | 2008-07-29 14:29:06 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2008-07-29 14:29:06 +0000 |
commit | 5f4bcf15d1da41999757af02cd1e0509176696cb (patch) | |
tree | 9b015822ee981061b3b3cd4d1f0fcafa52c60057 /src/malloc.c | |
parent | 4f8e6aa0872c27fd3d2dcc01c4c608dd75970be2 (diff) | |
download | sqlite-5f4bcf15d1da41999757af02cd1e0509176696cb.tar.gz sqlite-5f4bcf15d1da41999757af02cd1e0509176696cb.zip |
Enhancements to the pagecache malloc test configuration. Changes to the
speed test scripts to use the new test enhancements. (CVS 5494)
FossilOrigin-Name: 0ce39c21f32958ae53c00dc8bbf8cdd453f2d90e
Diffstat (limited to 'src/malloc.c')
-rw-r--r-- | src/malloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/malloc.c b/src/malloc.c index f90e62753..c7b2e650f 100644 --- a/src/malloc.c +++ b/src/malloc.c @@ -12,7 +12,7 @@ ** ** Memory allocation functions used throughout sqlite. ** -** $Id: malloc.c,v 1.30 2008/07/28 19:34:53 drh Exp $ +** $Id: malloc.c,v 1.31 2008/07/29 14:29:07 drh Exp $ */ #include "sqliteInt.h" #include <stdarg.h> @@ -443,7 +443,7 @@ void sqlite3PageFree(void *p){ mem0.aPageFree[mem0.nPageFree++] = i; sqlite3StatusAdd(SQLITE_STATUS_PAGECACHE_USED, -1); sqlite3_mutex_leave(mem0.mutex); -#ifndef NDEBUG +#if !defined(NDEBUG) && 0 /* Assert that a duplicate was not just inserted into aPageFree[]. */ for(i=0; i<mem0.nPageFree-1; i++){ assert( mem0.aPageFree[i]!=mem0.aPageFree[mem0.nPageFree-1] ); |