SQLITE_NOTICE(283): recovered 1 frames from WAL file /fossil/sqlite.fossil-wal

SQLite: File History
/ File History
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History of src/mem2.c

2014-10-07
15:46
Enhance (and fix) the MEMTYPE tags associated with heap memory allocations when SQLITE_MEMDEBUG is used. file: [f1940d9e] check-in: [ca5b789e] user: drh branch: trunk, size: 14700
2013-08-31
05:13
Fix harmless MSVC compiler warning with MEMDEBUG defined. file: [dce31758] check-in: [b48cfd2d] user: mistachkin branch: cygwinTempPath, size: 14691
2013-08-28
01:54
Fix several harmless compiler warnings. Fix a couple compiler issues with the shell. file: [e243acb0] check-in: [8917e9f9] user: mistachkin branch: mmapDisabled, size: 14684
2010-08-31
15:27
Add evidence mark comments to source code. Add additional information to the documentation of sqlite3_release_memory(). Fix a minor inefficiency in mem1.c that was discovered while writing requirements tests. file: [e307323e] check-in: [53b0c03f] user: drh branch: trunk, size: 14649
2010-08-20
09:53
Disable the MEMSYS2 auxiliary routines if MEMSYS2 is changed to an alternative memory allocator using SQLITE_CONFIG_MALLOC. file: [9e5f72e3] check-in: [541dd3b8] user: drh branch: trunk, size: 14593
2010-07-26
11:07
Make sure all memory from sqlite3DbMalloc() is freed by sqlite3DbFree() and all memory from sqlite3_malloc() is freed by sqlite3_free(). file: [12c91260] check-in: [629e38a8] user: drh branch: experimental, size: 14440
2010-07-25
02:39
Fixes to prior checkins so that they compile and run even if SQLITE_MEMDEBUG is not defined. file: [47361e12] check-in: [548bf3f7] user: drh branch: malloc-enhancement, size: 14441
2010-07-24
16:34
Make sure all memory from sqlite3DbMalloc() is freed by sqlite3DbFree() and all memory from sqlite3_malloc() is freed by sqlite3_free(). file: [716e6268] check-in: [ac1f37a6] user: drh branch: malloc-enhancement, size: 13839
2010-03-12
16:32
Add assert()s to mem2.c (activated by SQLITE_MEMDEBUG) which verify that memory alloctions that might have come from lookaside are always freed using a lookaside-aware free routine. file: [2ee7bdac] check-in: [c2af2164] user: drh branch: trunk, size: 14094
2010-03-08
15:17
Correct an assert() in mem2.c (test code only). file: [ee752297] check-in: [1a88e31b] user: dan branch: trunk, size: 12902
2010-01-05
03:30
In the debugging memory allocator, initialize new memory allocations to pseudo-randomness in an effort to find problems with memcmp() of structures that have uninitialized pad bytes. file: [92b4f772] check-in: [6462817b] user: drh branch: trunk, size: 12857
2009-11-10
01:30
Remove the obsolete "$Id:$" RCS identifier strings from the source code. file: [3f196f6f] check-in: [f6c045f6] user: drh branch: trunk, size: 12167
2009-03-23
04:33
Use the ROUND8() macro to round an integer up to the nearest multiple of 8 and ROUNDDOWN8() macro to round down to the nearest multiple of 8. This is a cosmetic change. (CVS 6372) file: [d02bd6a5] check-in: [db1d4d2f] user: danielk1977 branch: trunk, size: 12230
2009-02-19
14:39
Changes to reduce the heap space consumed by triggers, views and tables in the in-memory representation of the schema. Also to reduce the space used by prepared statements slightly. (CVS 6305) file: [692c5b50] check-in: [d9f6ffbc] user: danielk1977 branch: trunk, size: 12229
2009-02-05
03:00
Improved overrun detection in mem2.c (SQLITE_MEMDEBUG). Previously was only checking up to 3 extra bytes allocated due to rounding. (CVS 6261) file: [6f46eef2] check-in: [a6fe3d6b] user: shane branch: trunk, size: 12201
2008-12-10
19:26
Never use strlen(). Use our own internal sqlite3Strlen30() which is guaranteed to never overflow an integer. Additional explicit casts to avoid nuisance warning messages. (CVS 6007) file: [4c53c007] check-in: [c872d554] user: drh branch: trunk, size: 12119
2008-12-05
17:17
Fix harmless compiler warnings. Improved comments in the query optimizer. (CVS 5982) file: [7029ff79] check-in: [adedd697] user: drh branch: trunk, size: 12110
2008-10-28
18:58
Remove the vestigial mem4 and mem6 memory allocators. Add the SQLITE_ZERO_MALLOC compile-time option and the mem0.c module to handle memory allocation for that case. (CVS 5848) file: [5d9968f5] check-in: [4651f590] user: drh branch: trunk, size: 12033
2008-09-01
18:34
Begin adding support for the SQLITE_OMIT_WSD macro. Some (many) WSD variables still need wrappers added to them. (CVS 5652) file: [f87e681d] check-in: [573d92ab] user: danielk1977 branch: trunk, size: 12133
2008-08-12
15:04
Fix further warnings/compilation errors in test code. (CVS 5558) file: [7256327b] check-in: [42247b91] user: danielk1977 branch: trunk, size: 12115
2008-07-25
08:49
Updates to mem6.c allocator. (CVS 5473) file: [87381b14] check-in: [43a4cae2] user: danielk1977 branch: trunk, size: 12115
2008-07-24
23:34
Reduce the size of the parser allocation. Add additional instrumentation to mem2. speed1*.test uses scratch malloc. (CVS 5472) file: [01726714] check-in: [599a9dea] user: drh branch: trunk, size: 12101
08:20
Add mem6.c, a new allocator. More to come. (CVS 5467) file: [1e14a86d] check-in: [192bc192] user: danielk1977 branch: trunk, size: 11454
2008-07-10
18:13
Enhancements to the testing logic for malloc and mutex. Only permit one of MEMSYS3/5 to be compiled-in at a time. Omit the SQLITE_CONFIG_MEMSYS3/5 configuration options. (CVS 5389) file: [0fc5bd65] check-in: [ed8b2525] user: drh branch: trunk, size: 11361
2008-06-19
01:03
Bug fixes: Plug a memory leak introduced by the previous check-in. Get the amalgamation to the point where it will compile. (CVS 5241) file: [23f9538f] check-in: [005f8eae] user: drh branch: trunk, size: 11394
2008-06-18
17:09
Implement the 'CONFIG_SINGLETHREAD' and 'CONFIG_MULTITHREAD' configuration modes. (CVS 5234) file: [468a7fd5] check-in: [5059644c] user: danielk1977 branch: trunk, size: 11190
2008-06-17
17:21
Change the mutex interface to be pluggable. This is an incremental checkin, there are still changes to come. (CVS 5227) file: [594270b8] check-in: [59728363] user: danielk1977 branch: trunk, size: 11186
15:12
Add internal interfaces: PageMalloc/PageFree and ScratchMalloc/ScratchFree. (CVS 5226) file: [809d0e31] check-in: [3e797d0f] user: drh branch: trunk, size: 11177
2008-06-15
02:51
Continuing work on the new memory allocation subsystem. Added routines for temporary memory allocation. Right the btree balance mechanism to only do one temporary allocation at a time. (CVS 5220) file: [53d29d82] check-in: [65fe7b62] user: drh branch: trunk, size: 11221
2008-06-14
16:56
Continuing progress on the new memory allocation subsystem. Added the sqlite3_mem_methods structure for defining new memory allocators at run-time. (CVS 5219) file: [10df7768] check-in: [f00305f4] user: drh branch: trunk, size: 11177
2008-06-13
18:24
Progress toward implementation of sqlite3_config() and a rework of the mutex and memory allocation subsystems. This is an incremental check-in. (CVS 5218) file: [cb99d152] check-in: [a03c5af1] user: drh branch: trunk, size: 12724
2008-04-10
14:57
Make sure all memory allocations are 8-byte aligned. Ticket #3040. Note that the mem3.c memory allocator returns 4-byte aligned memory allocations. But as mem3.c is intended for use in 32-bit embedded systems, we are not going to change that. (CVS 4978) file: [36562051] check-in: [d11e8e30] user: drh branch: trunk, size: 12618
2008-04-03
10:13
Change the allocator in mem2.c (used when SQLITE_MEMDEBUG is defined) so that allocations are not rounded up to the nearest 4 byte boundary. Fix a couple of errors in malloc.test related to sqlite3OsAccess() returning -1. (CVS 4956) file: [84f7ac94] check-in: [fd97f876] user: danielk1977 branch: trunk, size: 12624
2008-03-28
07:42
If memory is leaked when running a test script with the --malloctrace option, write out a file called leaks.sql in the same format as mallocs.sql containing th e leaked applications. The same tools can then be used to examine the stack traces associated with leaked allocations. (CVS 4926) file: [37c410e2] check-in: [f1b97ed9] user: danielk1977 branch: trunk, size: 12353
2008-03-21
14:22
Add some more logging to the malloc system used when SQLITE_MEMDEBUG is defined. (CVS 4901) file: [a4694eff] check-in: [79738f58] user: danielk1977 branch: trunk, size: 12115
2008-02-19
15:15
Change non-exported memory interfaces to following the naming conventions. (CVS 4797) file: [a17fd71f] check-in: [94774b41] user: drh branch: trunk, size: 11864
2008-02-14
23:26
Add the experimental mem5.c memory allocator. Allocate the content part of cache pages separately from the header. (See check-ins (4495) and (4409)). (CVS 4789) file: [021eecbb] check-in: [669ece8c] user: drh branch: trunk, size: 11873
2008-02-13
18:25
Where possible, avoid freeing buffers allocated for vdbe memory cells in case they can be reused. (CVS 4783) file: [ed0cb11a] check-in: [990237e2] user: danielk1977 branch: trunk, size: 12648
2008-01-22
21:30
Add the fault injector module in fault.c. Use it as a basis for memory allocation failure testing. (CVS 4742) file: [607af52a] check-in: [1a335e18] user: drh branch: trunk, size: 12204
2007-11-29
18:36
Add the optional (and experimental) mmap() memory allocator in the mem4.c module. (CVS 4581) file: [a9400e06] check-in: [cfd683ac] user: drh branch: trunk, size: 15831
2007-11-05
17:54
Drop support for the SQLITE_OMIT_MEMORY_ALLOCATION compile-time option. (CVS 4529) file: [2a1da2e8] check-in: [b57c89fe] user: drh branch: trunk, size: 15863
2007-10-19
17:47
Added an experimental malloc-free memory allocation subsystem, intended for use on embedded systems. Runs 7% faster than when using system malloc() on Linux. (CVS 4493) file: [3f669b5e] check-in: [8487ca82] user: drh branch: trunk, size: 15919
2007-10-15
19:34
Add a malloc size histogram to the debugging malloc implementation in mem2.c. (CVS 4490) file: [8651e530] check-in: [3e51696c] user: drh branch: trunk, size: 15873
2007-10-03
08:46
Add automatic recovery from the pager "error-state". Also add a new error code - SQLITE_IOERR_NOMEM. (CVS 4454) file: [9c59519e] check-in: [12eca32a] user: danielk1977 branch: trunk, size: 15189
2007-09-01
09:02
Fix a problem handling a malloc() failure in printf.c. Also some other things to improve test coverage. (CVS 4361) file: [b97b4662] check-in: [595bfe72] user: danielk1977 branch: trunk, size: 14293
2007-08-30
15:46
Check in extra fixes for malloc4.test. (CVS 4341) file: [20cfac1d] check-in: [49ce3a83] user: danielk1977 branch: trunk, size: 14506
2007-08-29
12:31
Modifications to the malloc failure tests to test transient and persistent failures. (CVS 4321) file: [2ba377e2] check-in: [e38ef81b] user: danielk1977 branch: trunk, size: 14447
2007-08-24
04:15
Bug fix in the memory leak trace output. (CVS 4283) file: [1a2ca756] check-in: [a1b495c2] user: drh branch: trunk, size: 13950
03:51
The win32 driver compiles but does not yet work well. Many bugs fixed. (CVS 4282) file: [dfe80214] check-in: [3a68fcdd] user: drh branch: trunk, size: 13911
2007-08-23
02:47
Improvements to memory leak detection. The --backtrace=NNN option is now recognized by tester.tcl. Memory leak summaries are automatically written to the file ./memleak.txt and each leak is tagged with the test in which it occurred. The quick.test script runs on Linux with no errors and no leaks. (CVS 4273) file: [48919353] check-in: [21f6b310] user: drh branch: trunk, size: 14406
2007-08-22
22:04
All of the malloc test cases run. Still seeing failures in malloc4.test. (CVS 4272) file: [28a0d930] check-in: [205d0b88] user: drh branch: trunk, size: 13382
20:18
The malloc.test script now passes all tests with no errors. (CVS 4271) file: [b707e02f] check-in: [db818430] user: drh branch: trunk, size: 13137
2007-08-20
22:48
Work toward multithreading support. Currently crashes quickly on a test. (CVS 4253) file: [482f0aaf] check-in: [1315bd8e] user: drh branch: trunk, size: 13022
2007-08-16
19:40
Change the design of the mutex interface to allow for both "fast" and "recursive" mutexes. (CVS 4238) file: [661ca7eb] check-in: [160593dc] user: drh branch: trunk, size: 12239
2007-08-15
20:41
Enhancements and smoke testing of the new memory allocation subsystem. Have not yet cut it over to the core, though. (CVS 4230) file: [d0ba3b23] check-in: [1dad2c0a] user: drh branch: trunk, size: 11945
19:16
Test infrastructure for the new memory subsystem. (CVS 4229) file: [1f3745ea] check-in: [9e506656] user: drh branch: trunk, size: 9807
17:07
Add a debugging memory allocator. (CVS 4227) file: [b8173ddc] check-in: [8d2d1c4f] user: drh branch: trunk, size: 9735 Added