/ File History
Login

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

History of src/mem2.c

2014-10-07
15:46
[f1940d9e] part of check-in [ca5b789e] Enhance (and fix) the MEMTYPE tags associated with heap memory allocations when SQLITE_MEMDEBUG is used. (check-in: [ca5b789e] user: drh branch: trunk, size: 14700)
2013-08-31
05:13
[dce31758] part of check-in [b48cfd2d] Fix harmless MSVC compiler warning with MEMDEBUG defined. (check-in: [b48cfd2d] user: mistachkin branch: cygwinTempPath, size: 14691)
2013-08-28
01:54
[e243acb0] part of check-in [8917e9f9] Fix several harmless compiler warnings. Fix a couple compiler issues with the shell. (check-in: [8917e9f9] user: mistachkin branch: mmapDisabled, size: 14684)
2010-08-31
15:27
[e307323e] part of check-in [53b0c03f] 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. (check-in: [53b0c03f] user: drh branch: trunk, size: 14649)
2010-08-20
09:53
[9e5f72e3] part of check-in [541dd3b8] Disable the MEMSYS2 auxiliary routines if MEMSYS2 is changed to an alternative memory allocator using SQLITE_CONFIG_MALLOC. (check-in: [541dd3b8] user: drh branch: trunk, size: 14593)
2010-07-26
11:07
[12c91260] part of check-in [629e38a8] Make sure all memory from sqlite3DbMalloc() is freed by sqlite3DbFree() and all memory from sqlite3_malloc() is freed by sqlite3_free(). (check-in: [629e38a8] user: drh branch: experimental, size: 14440)
2010-07-25
02:39
[47361e12] part of check-in [548bf3f7] Fixes to prior checkins so that they compile and run even if SQLITE_MEMDEBUG is not defined. (check-in: [548bf3f7] user: drh branch: malloc-enhancement, size: 14441)
2010-07-24
16:34
[716e6268] part of check-in [ac1f37a6] Make sure all memory from sqlite3DbMalloc() is freed by sqlite3DbFree() and all memory from sqlite3_malloc() is freed by sqlite3_free(). (check-in: [ac1f37a6] user: drh branch: malloc-enhancement, size: 13839)
2010-03-12
16:32
[2ee7bdac] part of check-in [c2af2164] 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. (check-in: [c2af2164] user: drh branch: trunk, size: 14094)
2010-03-08
15:17
[ee752297] part of check-in [1a88e31b] Correct an assert() in mem2.c (test code only). (check-in: [1a88e31b] user: dan branch: trunk, size: 12902)
2010-01-05
03:30
[92b4f772] part of check-in [6462817b] 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. (check-in: [6462817b] user: drh branch: trunk, size: 12857)
2009-11-10
01:30
[3f196f6f] part of check-in [f6c045f6] Remove the obsolete "$Id:$" RCS identifier strings from the source code. (check-in: [f6c045f6] user: drh branch: trunk, size: 12167)
2009-03-23
04:33
[d02bd6a5] part of check-in [db1d4d2f] 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) (check-in: [db1d4d2f] user: danielk1977 branch: trunk, size: 12230)
2009-02-19
14:39
[692c5b50] part of check-in [d9f6ffbc] 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) (check-in: [d9f6ffbc] user: danielk1977 branch: trunk, size: 12229)
2009-02-05
03:00
[6f46eef2] part of check-in [a6fe3d6b] Improved overrun detection in mem2.c (SQLITE_MEMDEBUG). Previously was only checking up to 3 extra bytes allocated due to rounding. (CVS 6261) (check-in: [a6fe3d6b] user: shane branch: trunk, size: 12201)
2008-12-10
19:26
[4c53c007] part of check-in [c872d554] 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) (check-in: [c872d554] user: drh branch: trunk, size: 12119)
2008-12-05
17:17
[7029ff79] part of check-in [adedd697] Fix harmless compiler warnings. Improved comments in the query optimizer. (CVS 5982) (check-in: [adedd697] user: drh branch: trunk, size: 12110)
2008-10-28
18:58
[5d9968f5] part of check-in [4651f590] 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) (check-in: [4651f590] user: drh branch: trunk, size: 12033)
2008-09-01
18:34
[f87e681d] part of check-in [573d92ab] Begin adding support for the SQLITE_OMIT_WSD macro. Some (many) WSD variables still need wrappers added to them. (CVS 5652) (check-in: [573d92ab] user: danielk1977 branch: trunk, size: 12133)
2008-08-12
15:04
[7256327b] part of check-in [42247b91] Fix further warnings/compilation errors in test code. (CVS 5558) (check-in: [42247b91] user: danielk1977 branch: trunk, size: 12115)
2008-07-25
08:49
[87381b14] part of check-in [43a4cae2] Updates to mem6.c allocator. (CVS 5473) (check-in: [43a4cae2] user: danielk1977 branch: trunk, size: 12115)
2008-07-24
23:34
[01726714] part of check-in [599a9dea] Reduce the size of the parser allocation. Add additional instrumentation to mem2. speed1*.test uses scratch malloc. (CVS 5472) (check-in: [599a9dea] user: drh branch: trunk, size: 12101)
08:20
[1e14a86d] part of check-in [192bc192] Add mem6.c, a new allocator. More to come. (CVS 5467) (check-in: [192bc192] user: danielk1977 branch: trunk, size: 11454)
2008-07-10
18:13
[0fc5bd65] part of check-in [ed8b2525] 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) (check-in: [ed8b2525] user: drh branch: trunk, size: 11361)
2008-06-19
01:03
[23f9538f] part of check-in [005f8eae] Bug fixes: Plug a memory leak introduced by the previous check-in. Get the amalgamation to the point where it will compile. (CVS 5241) (check-in: [005f8eae] user: drh branch: trunk, size: 11394)
2008-06-18
17:09
[468a7fd5] part of check-in [5059644c] Implement the 'CONFIG_SINGLETHREAD' and 'CONFIG_MULTITHREAD' configuration modes. (CVS 5234) (check-in: [5059644c] user: danielk1977 branch: trunk, size: 11190)
2008-06-17
17:21
[594270b8] part of check-in [59728363] Change the mutex interface to be pluggable. This is an incremental checkin, there are still changes to come. (CVS 5227) (check-in: [59728363] user: danielk1977 branch: trunk, size: 11186)
15:12
[809d0e31] part of check-in [3e797d0f] Add internal interfaces: PageMalloc/PageFree and ScratchMalloc/ScratchFree. (CVS 5226) (check-in: [3e797d0f] user: drh branch: trunk, size: 11177)
2008-06-15
02:51
[53d29d82] part of check-in [65fe7b62] 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) (check-in: [65fe7b62] user: drh branch: trunk, size: 11221)
2008-06-14
16:56
[10df7768] part of check-in [f00305f4] Continuing progress on the new memory allocation subsystem. Added the sqlite3_mem_methods structure for defining new memory allocators at run-time. (CVS 5219) (check-in: [f00305f4] user: drh branch: trunk, size: 11177)
2008-06-13
18:24
[cb99d152] part of check-in [a03c5af1] Progress toward implementation of sqlite3_config() and a rework of the mutex and memory allocation subsystems. This is an incremental check-in. (CVS 5218) (check-in: [a03c5af1] user: drh branch: trunk, size: 12724)
2008-04-10
14:57
[36562051] part of check-in [d11e8e30] 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) (check-in: [d11e8e30] user: drh branch: trunk, size: 12618)
2008-04-03
10:13
[84f7ac94] part of check-in [fd97f876] 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) (check-in: [fd97f876] user: danielk1977 branch: trunk, size: 12624)
2008-03-28
07:42
[37c410e2] part of check-in [f1b97ed9] 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) (check-in: [f1b97ed9] user: danielk1977 branch: trunk, size: 12353)
2008-03-21
14:22
[a4694eff] part of check-in [79738f58] Add some more logging to the malloc system used when SQLITE_MEMDEBUG is defined. (CVS 4901) (check-in: [79738f58] user: danielk1977 branch: trunk, size: 12115)
2008-02-19
15:15
[a17fd71f] part of check-in [94774b41] Change non-exported memory interfaces to following the naming conventions. (CVS 4797) (check-in: [94774b41] user: drh branch: trunk, size: 11864)
2008-02-14
23:26
[021eecbb] part of check-in [669ece8c] 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) (check-in: [669ece8c] user: drh branch: trunk, size: 11873)
2008-02-13
18:25
[ed0cb11a] part of check-in [990237e2] Where possible, avoid freeing buffers allocated for vdbe memory cells in case they can be reused. (CVS 4783) (check-in: [990237e2] user: danielk1977 branch: trunk, size: 12648)
2008-01-22
21:30
[607af52a] part of check-in [1a335e18] Add the fault injector module in fault.c. Use it as a basis for memory allocation failure testing. (CVS 4742) (check-in: [1a335e18] user: drh branch: trunk, size: 12204)
2007-11-29
18:36
[a9400e06] part of check-in [cfd683ac] Add the optional (and experimental) mmap() memory allocator in the mem4.c module. (CVS 4581) (check-in: [cfd683ac] user: drh branch: trunk, size: 15831)
2007-11-05
17:54
[2a1da2e8] part of check-in [b57c89fe] Drop support for the SQLITE_OMIT_MEMORY_ALLOCATION compile-time option. (CVS 4529) (check-in: [b57c89fe] user: drh branch: trunk, size: 15863)
2007-10-19
17:47
[3f669b5e] part of check-in [8487ca82] 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) (check-in: [8487ca82] user: drh branch: trunk, size: 15919)
2007-10-15
19:34
[8651e530] part of check-in [3e51696c] Add a malloc size histogram to the debugging malloc implementation in mem2.c. (CVS 4490) (check-in: [3e51696c] user: drh branch: trunk, size: 15873)
2007-10-03
08:46
[9c59519e] part of check-in [12eca32a] Add automatic recovery from the pager "error-state". Also add a new error code - SQLITE_IOERR_NOMEM. (CVS 4454) (check-in: [12eca32a] user: danielk1977 branch: trunk, size: 15189)
2007-09-01
09:02
[b97b4662] part of check-in [595bfe72] Fix a problem handling a malloc() failure in printf.c. Also some other things to improve test coverage. (CVS 4361) (check-in: [595bfe72] user: danielk1977 branch: trunk, size: 14293)
2007-08-30
15:46
[20cfac1d] part of check-in [49ce3a83] Check in extra fixes for malloc4.test. (CVS 4341) (check-in: [49ce3a83] user: danielk1977 branch: trunk, size: 14506)
2007-08-29
12:31
[2ba377e2] part of check-in [e38ef81b] Modifications to the malloc failure tests to test transient and persistent failures. (CVS 4321) (check-in: [e38ef81b] user: danielk1977 branch: trunk, size: 14447)
2007-08-24
04:15
[1a2ca756] part of check-in [a1b495c2] Bug fix in the memory leak trace output. (CVS 4283) (check-in: [a1b495c2] user: drh branch: trunk, size: 13950)
03:51
[dfe80214] part of check-in [3a68fcdd] The win32 driver compiles but does not yet work well. Many bugs fixed. (CVS 4282) (check-in: [3a68fcdd] user: drh branch: trunk, size: 13911)
2007-08-23
02:47
[48919353] part of check-in [21f6b310] 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) (check-in: [21f6b310] user: drh branch: trunk, size: 14406)
2007-08-22
22:04
[28a0d930] part of check-in [205d0b88] All of the malloc test cases run. Still seeing failures in malloc4.test. (CVS 4272) (check-in: [205d0b88] user: drh branch: trunk, size: 13382)
20:18
[b707e02f] part of check-in [db818430] The malloc.test script now passes all tests with no errors. (CVS 4271) (check-in: [db818430] user: drh branch: trunk, size: 13137)
2007-08-20
22:48
[482f0aaf] part of check-in [1315bd8e] Work toward multithreading support. Currently crashes quickly on a test. (CVS 4253) (check-in: [1315bd8e] user: drh branch: trunk, size: 13022)
2007-08-16
19:40
[661ca7eb] part of check-in [160593dc] Change the design of the mutex interface to allow for both "fast" and "recursive" mutexes. (CVS 4238) (check-in: [160593dc] user: drh branch: trunk, size: 12239)
2007-08-15
20:41
[d0ba3b23] part of check-in [1dad2c0a] Enhancements and smoke testing of the new memory allocation subsystem. Have not yet cut it over to the core, though. (CVS 4230) (check-in: [1dad2c0a] user: drh branch: trunk, size: 11945)
19:16
[1f3745ea] part of check-in [9e506656] Test infrastructure for the new memory subsystem. (CVS 4229) (check-in: [9e506656] user: drh branch: trunk, size: 9807)
17:07
[b8173ddc] part of check-in [8d2d1c4f] Add a debugging memory allocator. (CVS 4227) (check-in: [8d2d1c4f] user: drh branch: trunk, size: 9735) Added