1
0
mirror of https://github.com/sqlite/sqlite.git synced 2026-01-06 08:01:16 +03:00

The power-of-two first-fit memory allocator is now working. (CVS 4793)

FossilOrigin-Name: d134d29cea971eb01a0e0fd94341ab79e2d5b57a
This commit is contained in:
drh
2008-02-16 16:21:45 +00:00
parent 66ce4d02fe
commit 2d7636e212
7 changed files with 231 additions and 413 deletions

View File

@@ -11,7 +11,7 @@
# This file implements some common TCL routines used for regression
# testing the SQLite library
#
# $Id: tester.tcl,v 1.104 2008/02/13 18:25:27 danielk1977 Exp $
# $Id: tester.tcl,v 1.105 2008/02/16 16:21:46 drh Exp $
set tcl_precision 15
@@ -215,13 +215,13 @@ proc finalize_testing {} {
if {[sqlite3_memory_used]>0} {
puts "Unfreed memory: [sqlite3_memory_used] bytes"
incr nErr
ifcapable memdebug||(mem3&&debug) {
ifcapable memdebug||mem5||(mem3&&debug) {
puts "Writing unfreed memory log to \"./memleak.txt\""
sqlite3_memdebug_dump ./memleak.txt
}
} else {
puts "All memory allocations freed - no leaks"
ifcapable memdebug {
ifcapable memdebug||mem5 {
sqlite3_memdebug_dump ./memusage.txt
}
}