SQLite

All files named ”src/malloc.c”
Login

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

History for src/malloc.c

2024-02-22
00:50
[410e570b30] part of check-in [ce5df19dc4] Fix debugging code so that it compiles on MSVC. (check-in: [ce5df19dc4] user: drh branch: trunk, size: 27473)
2024-02-01
11:38
[c31472af77] part of check-in [e45df7dcd6] Add the test_oom_breakpoint() routine on debug builds, to serve as a convenient breakpoint to intercept OOM conditions. (check-in: [e45df7dcd6] user: drh branch: trunk, size: 27467)
2023-10-11
13:34
[f016922435] part of check-in [793bbfa5af] Simplification to sqlite3ApiExit(). Generates identical machine code, but easier for humans to read. (check-in: [793bbfa5af] user: drh branch: trunk, size: 26757)
2022-12-03
13:05
[47b82c5daa] part of check-in [ed1ed21221] Doc typo fix for SQLITE_MAX_ALLOCATION_SIZE in malloc.c. No code changes. (check-in: [ed1ed21221] user: stephan branch: trunk, size: 26772)
2022-11-22
12:47
[3d4ec16221] part of check-in [21e80a2973] Convert an ALWAYS() in sqlite3DbSpanDup() into an assert(), for a performance increase and size reduction. (check-in: [21e80a2973] user: drh branch: trunk, size: 26771)
2022-09-27
16:35
[dfddca1e16] part of check-in [584de6a996] Provide the SQLITE_MAX_ALLOCATION_SIZE compile-time option for limiting the maximum memory allocation size. (check-in: [584de6a996] user: drh branch: trunk, size: 26569)
2022-08-22
15:18
[b7a3430cbe] part of check-in [c296a9d958] Performance enhancement for sqlite3DbFree(). (check-in: [c296a9d958] user: drh branch: trunk, size: 26043)
02:00
[24369414a0] part of check-in [e5eaa80e81] Add the new internal interface sqlite3DbNNFreeNN(db,ptr) where both the db and ptr parameters are guaranteed to be non-NULL. Use this where appropriate to save more than 2 million CPU cycles on the standard performance test. (check-in: [e5eaa80e81] user: drh branch: trunk, size: 25913)
2022-07-10
21:12
[4a37853231] part of check-in [9a494d2594] When an OOM occurs and sets the Parse.nErr value, also set the Parse.nErr value for all outer Parse objects. dbsqlfuzz d33f60aaa67733aa700cd69dacf8e0e23a327a29 (check-in: [9a494d2594] user: drh branch: trunk, size: 24776)
2022-04-12
11:02
[a9127efdce] part of check-in [09c5a4ec13] Modify utility function sqlite3SetString() so that it may be used safely on Parse.zErrMsg. Fuzzer test case "crash-1604e5d76c92574e21e437049dab9b672e06b767.txt". (check-in: [09c5a4ec13] user: dan branch: trunk, size: 24606)
2022-01-24
12:48
[fec841aa0a] part of check-in [ad7aace761] Make sure the sqlite3OomFault() routine sets an error in the Parse object if there is a Parse object active and linked to the database connection. (check-in: [ad7aace761] user: drh branch: trunk, size: 24591)
2021-12-06
20:16
[d9172a3946] part of check-in [8a9036ee61] Omit the OP_FilterInit opcode. Use OP_Blob to initialize each Bloom filter instead. Size the Bloom filter based on sqlite_stat1 size estimates rather than a run-time measurement for improved testability. (check-in: [8a9036ee61] user: drh branch: bloom-filter, size: 24825)
13:07
[183c2bf45c] part of check-in [a7adcf6908] Attempt to vary the size of Bloom filters based on an estimate of how many keys the filter will hold. (check-in: [a7adcf6908] user: drh branch: bloom-filter, size: 24812)
2021-09-24
16:14
[ef796bcc0e] part of check-in [a3c71a673d] Add lots of new "const" on internal function parameters. There is opportunity for many more - this is a work in progress. (check-in: [a3c71a673d] user: drh branch: trunk, size: 24291)
2021-05-21
16:41
[cbc93cdd42] part of check-in [c18dbe2f38] Fix a problem with SQLITE_MAX_MEMORY in malloc.c. (check-in: [c18dbe2f38] user: dan branch: trunk, size: 24253)
2020-11-18
21:50
[c1af4ac5a4] part of check-in [b887c7504e] Improvements to the mechanism that attempts to report SQLITE_CORRUPT if pread() says that the underlying filesystem is corrupt. (check-in: [b887c7504e] user: drh branch: detect-corrupt-fs, size: 24287)
12:48
[cef96fefb9] part of check-in [9538ea8447] On unix, for certain error codes of read()/pread() return SQLITE_IOERR_CORRUPTFS instead of SQLITE_IOERR_READ. And then convert this error into SQLITE_CORRUPT prior to returning back to the application. (check-in: [9538ea8447] user: drh branch: detect-corrupt-fs, size: 24359)
2020-10-20
14:40
[413b0ffea2] part of check-in [602d736916] Fix the sqlite3_hard_heap_limit() so that it works with sqlite3_realloc64() in addition to sqlite3_malloc64(). Improvements to OOM processing and debugging aids in the fuzzcheck utility. (check-in: [602d736916] user: drh branch: trunk, size: 24199)
2020-07-16
14:19
[22d5bdd9fe] part of check-in [35cd87063d] Small performance improvement and size reduction in sqlite3DbStrNDup(). (check-in: [35cd87063d] user: drh branch: trunk, size: 24032)
2020-05-17
00:26
[d0400b0366] part of check-in [1313557b51] Use the sqlite3Realloc() interface internally, rather than the public sqlite3_realloc64() equivalent, to avoid unnecessary calls to sqlite3_initialize(). (check-in: [1313557b51] user: drh branch: trunk, size: 24030)
2020-05-08
10:44
[167e916650] part of check-in [e9a8f910b5] Do not retry on a failed realloc() unless SQLITE_ENABLE_MEMORY_MANAGEMENT is available, meaning that the retry has some possibility of success. (check-in: [e9a8f910b5] user: drh branch: trunk, size: 24033)
2020-04-28
14:01
[a3e13b001f] part of check-in [ce980af65a] Use AtomicStore() when setting the mem0.nearlyFull boolean to avoid harmless TSAN warnings and to forestall doubts about threadsafety. (check-in: [ce980af65a] user: drh branch: trunk, size: 23987)
11:45
[9989847830] part of check-in [7556bc632e] Use an AtomicLoad() macro in sqlite3HeapNearlyFull(). (check-in: [7556bc632e] user: drh branch: trunk, size: 23950)
2020-03-30
13:35
[cabfef0d72] part of check-in [a49f8ec552] Use __atomic_load_n() and __atomic_store_n() for a few more things where they are available. (check-in: [a49f8ec552] user: dan branch: trunk, size: 23937)
2019-12-31
15:12
[eaa4dc9602] part of check-in [88d2449838] Refactor names. Use "small" instead of "mini" to describe the smaller of the two lookaside memory allocation sizes. (check-in: [88d2449838] user: drh branch: two-size-lookaside, size: 23911)
2019-12-13
15:48
[d74d986f91] part of check-in [7480566843] Cleanup and performance enhancements for mini-lookaside. (check-in: [7480566843] user: drh branch: two-size-lookaside, size: 23847)
2019-12-12
20:58
[02235d039c] part of check-in [e392e7f228] Reduce the number of call sites to dbMallocRawFinish in the case where n > lookaside.sz (check-in: [e392e7f228] user: numist branch: two-size-lookaside, size: 23209)
20:39
[cae32705aa] part of check-in [611020e337] Fix an issue where malloc could be used to fulfill a small allocation when a large lookaside slot could have beeen used instead. (check-in: [611020e337] user: numist branch: two-size-lookaside, size: 23212)
17:17
[8a907f9e80] part of check-in [5e1949bca9] Change the size of a mini-lookaside allocation to a macro (MINI_SZ) rather than a magic number (128). (check-in: [5e1949bca9] user: drh branch: two-size-lookaside, size: 23179)
02:50
[350d345ab1] part of check-in [b02fdc09c8] More efficient implementation of a lookaside allocator that supports mini (in this case, harcoded to 128B) slots. (check-in: [b02fdc09c8] user: numist branch: two-size-lookaside, size: 23167)
2019-11-14
23:08
[b5acd8b5e0] part of check-in [ba27012d43] Backport support for the sqlite3_hard_heap_limit64() interface and the hard_heap_limit pragma to the 3.30 branch. (check-in: [ba27012d43] user: drh branch: branch-3.30, size: 22303)
17:46
[550021fcae] part of check-in [33fd0c3abc] Fix a bug in the hard_heap_limit pragma so that it returns the new value of the hard_heap_limit, not the soft_heap_limit. Change SQLITE_MAX_MEMORY so that it works by setting the default hard_heap_limit value. (check-in: [33fd0c3abc] user: drh branch: hard-heap-limit, size: 22258)
15:21
[baf74e2798] part of check-in [b8a631fd30] Merge recent enhancements from trunk. (check-in: [b8a631fd30] user: drh branch: hard-heap-limit, size: 22233)
2019-11-07
19:59
[70aae7cc8a] part of check-in [4ab9dbb939] Experimental branch to provide SQLITE_LIMIT_HEAP_K to limit the amount of allocated memory used by each database connection, individually. (check-in: [4ab9dbb939] user: drh branch: limit_heap_k, size: 21342)
2019-10-09
17:06
[7b36b39aae] part of check-in [5ba8cee8f7] An alternative, experimental lookaside memory allocator that uses two different slot sizes. (check-in: [5ba8cee8f7] user: sperry branch: 2-size-lookaside, size: 20003)
2019-10-05
14:39
[b7640bcf89] part of check-in [17ce1c49cb] Performance optimization to the lookaside-memory disabling mechanism. (check-in: [17ce1c49cb] user: drh branch: trunk, size: 20702)
2019-04-25
18:15
[224052e674] part of check-in [b0ccef61a7] Add the sqlite3_hard_heap_limit64() interface and the corresponding "PRAGMA hard_heap_limit=N" command. (check-in: [b0ccef61a7] user: drh branch: hard-heap-limit, size: 22278)
2019-02-08
14:55
[0f9da2a66b] part of check-in [5c6638040b] Give the sqlite3 object a pointer to the current Parse so that if an OOM occurs, it can automatically set the Parse.rc value to SQLITE_NOMEM. This avoids a frequent extra test of db.mallocFailed in the innermost parser loop. (check-in: [5c6638040b] user: drh branch: trunk, size: 20747)
2018-01-10
13:58
[0729543509] part of check-in [c42c734f11] Tag an unreachable branch using ALWAYS(). (check-in: [c42c734f11] user: drh branch: trunk, size: 20677)
2017-12-27
19:43
[6f684fd039] part of check-in [a8e1545cb7] Add and use the internal sqlite3DbSpanDup() interface. (check-in: [a8e1545cb7] user: drh branch: span-refactor, size: 20669)
2017-08-29
20:21
[a02c9e69bc] part of check-in [a06263f1ef] Faster memory allocation from lookaside by not trying to keep track of the number of outstanding allocations, and rather computing that value only when requested. (check-in: [a06263f1ef] user: drh branch: trunk, size: 20206)
2017-08-28
15:51
[e069cec004] part of check-in [54b000246c] Remove the rarely-used scratch memory allocator. This makes the code smaller, faster, and easier to maintain. In place of the scratch allocator, add the SQLITE_CONFIG_SMALL_MALLOC configuration option that provides a hint to SQLite that large memory allocations should be avoided. (check-in: [54b000246c] user: drh branch: trunk, size: 20223)
2017-08-27
10:55
[6bd9604ef9] part of check-in [c93298d5ae] Instrumentation and changes in an effort to reduce thread contention. (check-in: [c93298d5ae] user: drh branch: reduced-thread-contention, size: 25188)
2017-04-05
12:39
[e20bb2b48a] part of check-in [ad90e8bb5e] Split off sqlite3DbFreeNN() from sqlite3DbFree() and use it in cases where we know that the argument to be freed is never NULL. (check-in: [ad90e8bb5e] user: drh branch: trunk, size: 24923)
2017-03-10
17:03
[89c98e3619] part of check-in [f8560c60d1] Fix an error in the SQLITE_MAX_MEMORY implementation resulting from a bad merge. Update the OSSFuzz interface so that it times out after running the byte-code engine for 10 seconds. (check-in: [f8560c60d1] user: drh branch: trunk, size: 24671)
16:22
[e2b75576ba] part of check-in [eabd4ef498] Add the -DSQLITE_MAX_MEMORY=N compile-time option. The default is no limit. (check-in: [eabd4ef498] user: drh branch: trunk, size: 24660)
15:55
[96f86a14b0] part of check-in [77dfe2abda] Add the SQLITE_MAX_MEMORY compile-time option that provides a hard upper bound on the amount of memory that SQLite will use, per process. (check-in: [77dfe2abda] user: drh branch: max-memory-option, size: 24651)
2017-02-13
13:35
[d0a1474236] part of check-in [670f10b242] Change all legacy instances of "#if SQLITE_DEBUG" to "#ifdef SQLITE_DEBUG" for consistency. (check-in: [670f10b242] user: drh branch: trunk, size: 24530)
2017-02-08
18:13
[f345c60d09] part of check-in [c09dd5c0be] Typo fixes in comment. No changes to code. (check-in: [c09dd5c0be] user: mistachkin branch: trunk, size: 24524)
16:01
[dc2b84cd32] part of check-in [77b470b0df] Always invoke the xRoundup() method of the memory allocator before calling xMalloc(). (check-in: [77b470b0df] user: drh branch: trunk, size: 24526)
2017-01-13
12:53
[fc1b9f4452] part of check-in [8c85b8fdd7] Fix the build for SQLITE_ENABLE_MEMORY_MANAGEMENT. (check-in: [8c85b8fdd7] user: drh branch: trunk, size: 24174)
2017-01-10
16:09
[c36ef8fa6e] part of check-in [4209b89eab] Avoid unnecessary calls to the xRoundup() method of the memory allocator when the soft heap limit is not set. (check-in: [4209b89eab] user: drh branch: trunk, size: 24165)
2017-01-03
18:05
[254c1cf31c] part of check-in [f69ce75b3d] Use the GCC built-in __sync_fetch_and_sub() to make the sqlite3StatusDown() routine atomic, and thereby avoid some mutexing. (check-in: [f69ce75b3d] user: drh branch: gnu-safe-math, size: 24355)
2016-12-27
12:08
[f3fad34cd5] part of check-in [2d71cbdf6b] Avoid a potential (harmless) signed integer overflow in memory usage accounting when calling sqlite3_realloc() to reduce the size of an allocation. (check-in: [2d71cbdf6b] user: drh branch: trunk, size: 24191)
2016-10-17
00:48
[5ee7c2d3dc] part of check-in [cda998f080] Small size reduction and performance increase in the string duplicator. (check-in: [cda998f080] user: drh branch: trunk, size: 24180)
2016-08-04
14:08
[218f15781b] part of check-in [491f1ef36e] Add extra logging calls to this branch. (check-in: [491f1ef36e] user: dan branch: debug, size: 24283)
2016-02-13
23:43
[1443d1ad95] part of check-in [6a9c4a3ebf] Enhance ability to debug out-of-memory errors. (check-in: [6a9c4a3ebf] user: mistachkin branch: noMemBkpt, size: 24225)
2016-02-06
19:48
[337e9808b5] part of check-in [2f7778e64d] Make sure variable declarations occur at the beginning of blocks, even with SQLITE_DEBUG enabled. (check-in: [2f7778e64d] user: drh branch: trunk, size: 24220)
2016-02-05
13:38
[55ebb1701e] part of check-in [0a802e96ab] Add the slightly faster sqlite3DbMallocRawNN(db,n) routine for the majority cases where db is guaranteed to be not NULL. (check-in: [0a802e96ab] user: drh branch: oom-handling, size: 24125)
02:42
[92ca6e16c9] part of check-in [d94416ddca] Further performance improvements that fall out of the mallocFailed changes. (check-in: [d94416ddca] user: drh branch: oom-handling, size: 23785)
01:55
[65168ef918] part of check-in [c3ef03478a] Improvements to the way that OOM errors are processed. (check-in: [c3ef03478a] user: drh branch: oom-handling, size: 23548)
2016-01-20
03:36
[b67c26c359] part of check-in [ff8eadbed5] Performance improvement in sqlite3DbMallocRaw(). (check-in: [ff8eadbed5] user: drh branch: trunk, size: 22649)
2015-12-10
15:09
[8f787669e7] part of check-in [ad3124c834] Move pointer range comparisons into a macro, where they can be dealt with in a more portable way. (check-in: [ad3124c834] user: drh branch: stdint.h, size: 22447)
2015-10-26
12:55
[337bbe9c7d] part of check-in [a36b7fe923] Remove an unreachable branch in malloc.c. (check-in: [a36b7fe923] user: drh branch: trunk, size: 22425)
2015-10-15
17:21
[0a2e42b835] part of check-in [9ccf8f8d35] Remove a superfluous conditional from the memory allocation initialization. (check-in: [9ccf8f8d35] user: drh branch: trunk, size: 22433)
16:20
[3eb27dfe5a] part of check-in [cb65989b07] Performance optimizations to the sqlite3MallocSize() by requiring the argument to always be non-NULL. (check-in: [cb65989b07] user: drh branch: trunk, size: 22479)
15:28
[f2daeddf05] part of check-in [6422d223dd] Change sqlite3StatusSet() into sqlite3StatusHighwater() so that only the highwater mark is recorded. This gives a small size reduction and performance improvement. (check-in: [6422d223dd] user: drh branch: trunk, size: 22461)
2015-09-25
16:29
[76c62c8ee6] part of check-in [2c57b2f386] Disable the SQLITE_TESTCTRL_BENIGN_MALLOC_HOOKS mechanism and replace it with SQLITE_TESTCTRL_BENIGN_MALLOC_CTRL, which gives better control. (check-in: [2c57b2f386] user: drh branch: malloc-testing, size: 22480)
2015-09-10
01:22
[3a37ce6979] part of check-in [8250e2a487] No-op the sqlite3_memory_alarm() interface in a different way, that does not break legacy memory behavior. This is a re-do of check-in [5d3f5df4da9f40d5]. (check-in: [8250e2a487] user: drh branch: trunk, size: 22443)
2015-09-02
14:56
[021012e28a] part of check-in [5d3f5df4da] The sqlite3_memory_alarm() interface has been deprecated and undocumented for almost 8 years (since version 3.5.3). Change it into a no-op. (check-in: [5d3f5df4da] user: drh branch: trunk, size: 22838)
2015-09-01
20:09
[7de3bb83de] part of check-in [8a80967f84] Small size reduction and performance increase in sqlite3DbMallocSize(). (check-in: [8a80967f84] user: drh branch: trunk, size: 23663)
2015-07-04
18:15
[19461e159b] part of check-in [dacb2a615c] Preserve the number of requested PAGECACHE pages even if the memory pointer or size is zero. Enhance the pcache1.c header comment to explain the memory layout of a page cache line. (check-in: [dacb2a615c] user: drh branch: trunk, size: 23663)
2015-06-30
03:13
[9be4e645f2] part of check-in [791b706ec6] Change sqlite3ApiExit() so that its first argument is never NULL. (check-in: [791b706ec6] user: drh branch: trunk, size: 23697)
2015-05-15
04:13
[908c780fdd] part of check-in [56ef98a047] Simplifications to error message processing. Fix a possible problem in error message formatting when vacuuming a database with a corrupt schema. (check-in: [56ef98a047] user: drh branch: trunk, size: 23792)
2015-05-10
02:01
[5bc15d5258] part of check-in [8a0d5d5e9a] Fix the sqlite3_memory_used() and sqlite3_memory_highwater() interfaces so that they really do provide a 64-bit answer. (check-in: [8a0d5d5e9a] user: drh branch: trunk, size: 23984)
2015-03-26
17:04
[6a370b83d5] part of check-in [3e872011ff] Avoid leaving the malloc subsystem in a partially initialized state if the low-level initialization callback fails. (check-in: [3e872011ff] user: drh branch: trunk, size: 24148)
2015-03-23
17:25
[e818a0db9a] part of check-in [1ce8e8fa4b] Add the sqlite3_status64() interface. Make the new interface and the legacy sqlite3_status() both atomic and threadsafe. Check threadsafety using assert()s. (check-in: [1ce8e8fa4b] user: drh branch: status64, size: 24073)
2015-03-21
23:38
[13f3f1cdc0] part of check-in [9513dbd486] Fix harmless compiler warnings with MSVC when assert() and SQLITE_MEMDEBUG are both enabled. (check-in: [9513dbd486] user: mistachkin branch: trunk, size: 23922)
2014-11-04
14:22
[740db54387] part of check-in [391c9b85ab] Change the definition of SQLITE_CONFIG_SCRATCH so that at most one scratch buffer is used per thread. Use the generic heap memory allocator for the WalIterator object when running a checkpoint. (check-in: [391c9b85ab] user: drh branch: trunk, size: 23890)
2014-10-24
00:35
[5e02eab3e7] part of check-in [c297a84bc6] Add the SQLITE_ENABLE_API_ARMOR compile-time option. This is a work in progress and is not yet completely functional. (check-in: [c297a84bc6] user: drh branch: api-armor, size: 24079)
2014-10-07
15:46
[3c3ac67969] part of check-in [ca5b789e33] Enhance (and fix) the MEMTYPE tags associated with heap memory allocations when SQLITE_MEMDEBUG is used. (check-in: [ca5b789e33] user: drh branch: trunk, size: 23964)
2014-10-03
14:54
[7cf86b4f23] part of check-in [440705b98a] Update to requirements marks related to changes in the memory allocation interface and enhancement of the documentation regarding DEFAULT clauses in CREATE TABLE. (check-in: [440705b98a] user: drh branch: trunk, size: 23885)
2014-09-18
21:25
[5bb99ee1e0] part of check-in [9c09ac353d] Add the Mem.szMalloc element to the Mem object and use it to keep track of the size of the Mem.zMalloc allocation. (check-in: [9c09ac353d] user: drh branch: trunk, size: 23859)
02:20
[4c1d511157] part of check-in [5192f964b2] Fix harmless warnings on 32-bit MSVC builds. (check-in: [5192f964b2] user: drh branch: trunk, size: 23799)
01:21
[c6dc1e154e] part of check-in [163bfae858] Fix compiler warnings and change the nullMem structure initializer into a format that MSVC can understand. (check-in: [163bfae858] user: drh branch: micro-optimizations, size: 23775)
2014-09-09
17:27
[cc015821ba] part of check-in [94954850cf] Add new APIs that take 64-bit length parameters: sqlite3_malloc64(), sqlite3_realloc64(), sqlite3_bind_blob64(), sqlite3_bind_texte64(), sqlite3_result_blob64(), and sqlite3_result_texte64(). Internal memory allocation routines also now use 64-bit unsigned length parameters for safety. Also add the sqlite3_msize() interface. Fix the sqlite3_get_table() to use sqlite3_realloc64() to avoid a integer overflow problem. (check-in: [94954850cf] user: drh branch: 64-bit-lengths, size: 23758)
2014-08-23
20:25
[954de5f998] part of check-in [bd41d394d4] Faster implementation of the sqlite3ApiExit() routine. (check-in: [bd41d394d4] user: drh branch: trunk, size: 23353)
19:42
[06f8507831] part of check-in [6da6f46d0c] Another memory allocator performance optimization. (check-in: [6da6f46d0c] user: drh branch: trunk, size: 23191)
19:04
[7f26fcedc4] part of check-in [f83daa16f6] Changes to sqlite3ScratchMalloc() that make the entire memory allocation interface a little faster and about 100 bytes smaller. (check-in: [f83daa16f6] user: drh branch: trunk, size: 22999)
2014-08-22
18:00
[0a88a97fc5] part of check-in [cf561d1f0b] Split the sqlite3Error() routine into sqlite3Error() and sqlite3ErrorWithMsg(), for a slight size reduction and performance increase. (check-in: [cf561d1f0b] user: drh branch: trunk, size: 23066)
2014-05-19
19:26
[35ee353f4e] part of check-in [aa7e2041a3] Fix harmless compiler warnings in MSVC. (check-in: [aa7e2041a3] user: drh branch: safer-malloc, size: 23038)
15:16
[6a1fbdadf0] part of check-in [17349a49d2] Changes to help ensure that a multiplication does not overflow when computing the number of bytes needed for a memory allocation, and cause a malfunction. No problems existing problems were discovered. However, these changes should help to ensure that no problems arise in the future. (check-in: [17349a49d2] user: drh branch: safer-malloc, size: 23019)
2013-12-10
19:49
[0203ebce91] part of check-in [48ecf18774] Simplify and improve the performance of the sqlite3VdbeMemGrow() routine. (check-in: [48ecf18774] user: drh branch: trunk, size: 23069)
2013-09-13
16:36
[543a8eb550] part of check-in [870c030b4e] Change the PRAGMA parser to use a binary search for the pragma name. Also: Minor performance enhancement to sqlite3DbFree() and to the token dequoter. (check-in: [870c030b4e] user: drh branch: trunk, size: 23070)
2012-07-19
20:27
[57121e3ef4] part of check-in [0a33444105] Further tweaks to malloc paths. (check-in: [0a33444105] user: dan branch: calloc, size: 24868)
2012-07-18
16:07
[9321b18a92] part of check-in [defd828e90] Remove another branch from the DbMalloc() paths. (check-in: [defd828e90] user: dan branch: calloc, size: 24539)
11:28
[1deb02c01b] part of check-in [75c095ee46] Reorganize code to remove a few of the branches introduced into the critical sqlite3DbMallocXXX() path by the previous commit. (check-in: [75c095ee46] user: dan branch: calloc, size: 24363)
2012-07-17
19:32
[e80dccc5d2] part of check-in [8752237d12] Enhance the custom memory allocation interface to allow the user to specify a calloc() function. (check-in: [8752237d12] user: dan branch: calloc, size: 23832)
2012-05-21
16:59
[fe085aa851] part of check-in [3869aef634] Make sure lookaside memory allocations are unusable after they are freed. (check-in: [3869aef634] user: drh branch: trunk, size: 23049)
2011-12-22
18:44
[758b53e49f] part of check-in [a61786e760] Backport the fixes for Coverity-discovered problems in [1c27d84216], [676acce274], and [f9c4a7c8f4] from trunk to the 3.7.6 branch. (check-in: [a61786e760] user: drh branch: branch-3.7.6, size: 22902)
17:10
[15afac5e59] part of check-in [676acce274] Check the return code from sqlite3_initialize() called from within sqlite3_soft_heap_limit64() and return an error from sqlite3_soft_heap_limit64() if sqlite3_initialize() fails. (check-in: [676acce274] user: drh branch: trunk, size: 22928)
2011-05-05
17:00
[591aedb20a] part of check-in [8ba456ae0b] Fix a bug in memory usage tracking that was introduced by check-in [4e33a0eaf83922]. (check-in: [8ba456ae0b] user: drh branch: trunk, size: 22897)
2011-04-15
19:30
[74c740e8ba] part of check-in [7a085271ff] Remove stray semi-colon that MSVC complained about. (check-in: [7a085271ff] user: shaneh branch: trunk, size: 22897)
16:39
[d9cdb1fcca] part of check-in [4e33a0eaf8] Changes to memory allocator usage tracking to delay the onset of integer overflow. (check-in: [4e33a0eaf8] user: drh branch: trunk, size: 22898)
2011-04-05
22:08
[788f2ed928] part of check-in [3eeb0ff78d] Suppress many harmless compiler warnings, mostly signed/unsigned comparisons within asserts or unused parameters in extensions. (check-in: [3eeb0ff78d] user: drh branch: trunk, size: 22871)
2010-12-20
15:51
[92d59a007d] part of check-in [34613f1dc5] Add additional DBSTATUS options for measuring the hit and miss rates against the lookaside memory pool - information useful in tuning the lookaside size. Currently experimental pending analysis of performance impact. (check-in: [34613f1dc5] user: drh branch: experimental, size: 22864)
2010-10-04
14:11
[3d7284cd93] part of check-in [cde62657d6] Warning cleanup from MSVC. (check-in: [cde62657d6] user: shaneh branch: trunk, size: 22710)
2010-09-28
14:26
[455f9d671a] part of check-in [7be03ecc04] Fix several harmless compiler warnings. (check-in: [7be03ecc04] user: drh branch: trunk, size: 22703)
2010-09-15
17:54
[babecbdfc6] part of check-in [82268a2c3d] Added the sqlite3_soft_heap_limit64() interface. Deprecate the older sqlite3_soft_heap_limit() interface. (check-in: [82268a2c3d] user: drh branch: trunk, size: 22700)
2010-09-11
16:25
[579a6eee34] part of check-in [f9b5c5cb13] Fix a couple of incorrect evidence marks on malloc(). (check-in: [f9b5c5cb13] user: drh branch: trunk, size: 22491)
16:15
[44a50eb10b] part of check-in [42b4bf9e72] Additional evidence marks on the malloc() implementation. Update the documentation to explain that mallocs are not necessarily 8-byte aligned if the SQLITE_4_BYTE_ALIGNED_MALLOC compile-time option is used. (check-in: [42b4bf9e72] user: drh branch: trunk, size: 22491)
15:54
[ab48f49442] part of check-in [305cc4e6c1] Add assert() statements to demonstrate that memory allocations are always aligned to an 8-byte boundary (unless SQLITE_4_BYTE_ALIGNED_MALLOC is defined). (check-in: [305cc4e6c1] user: drh branch: trunk, size: 22370)
2010-09-02
18:13
[e0e9ca16a9] part of check-in [5a9591607a] Fix an off-by-one error in the scratch memory allocator. (check-in: [5a9591607a] user: drh branch: trunk, size: 22242)
17:15
[2231edbd06] part of check-in [2211486b69] Use sqlite3_mutex_notheld() instead of !sqlite3_mutex_held() inside of assert() statements since the former works when mutexing is disabled while the latter does not. (check-in: [2211486b69] user: drh branch: trunk, size: 22243)
10:08
[8b67cb6ba7] part of check-in [4f20f8ba73] If MEM_STATUS is disabled, avoid holding the STATIC_MEM mutex when calling the user-defined xMalloc method. Holding the mutex causes problems for memsys3 and memsys5. (check-in: [4f20f8ba73] user: dan branch: trunk, size: 22241)
2010-08-31
15:27
[d9fcf07f36] part of check-in [53b0c03fd3] 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: [53b0c03fd3] user: drh branch: trunk, size: 22115)
2010-08-27
17:16
[f34c925332] part of check-in [a3475ddfbe] Refactor the implementation of the scratch memory allocator. Add the SQLITE_TESTCTRL_SCRATCHMALLOC interface to facilitate testing. (check-in: [a3475ddfbe] user: drh branch: trunk, size: 21820)
12:21
[e81193f1b5] part of check-in [51049479a8] Remove unnecessary code from malloc.c. Enhance pcache1.c so that is tries to reuse existing pages, rather than create new pages, when SQLite is under memory pressure. "Memory pressure" means that SQLITE_CONFIG_PAGECACHE memory is nearly exhausted or sqlite3_soft_heap_limit() has been reached. (check-in: [51049479a8] user: drh branch: trunk, size: 21886)
2010-07-26
19:09
[19a468460c] part of check-in [6df081adbf] Fix a bug in the SQLITE_STATUS_MALLOC_COUNT counter. Add an ALWAYS() around a condition in the SQLITE_DBSTATUS_SCHEMA_USED logic that is always true. (check-in: [6df081adbf] user: drh branch: trunk, size: 21724)
18:43
[52c19b9ea6] part of check-in [8f8e442b3a] Add the SQLITE_STATUS_MALLOC_COUNT option for sqlite3_status(). (check-in: [8f8e442b3a] user: drh branch: trunk, size: 21666)
14:47
[9d7dc6a52a] part of check-in [72b84d066a] Add virtual table test cases to dbstatus.test. (check-in: [72b84d066a] user: dan branch: experimental, size: 21559)
11:07
[1cf0f2f459] part of check-in [629e38a8c9] Make sure all memory from sqlite3DbMalloc() is freed by sqlite3DbFree() and all memory from sqlite3_malloc() is freed by sqlite3_free(). (check-in: [629e38a8c9] user: drh branch: experimental, size: 21517)
2010-07-25
02:39
[2e38fd5e15] part of check-in [548bf3f7d7] Fixes to prior checkins so that they compile and run even if SQLITE_MEMDEBUG is not defined. (check-in: [548bf3f7d7] user: drh branch: malloc-enhancement, size: 28385)
02:12
[a7e805ed0b] part of check-in [da2f62c502] Further examples of using automatic deallocation to replace "delete" methods. (check-in: [da2f62c502] user: drh branch: malloc-enhancement, size: 28304)
2010-07-24
19:08
[4ab52050d9] part of check-in [e5ecb15984] Additional malloc sanity changes. Use sqlite3MemLink() on Index.zColAff and Table.zColAff as a proof of concept. (check-in: [e5ecb15984] user: drh branch: malloc-enhancement, size: 27753)
18:25
[2dbc736554] part of check-in [48ef221c28] Add infrastructure to support a hierarchy of memory allocations with automatic deallocation of substructure. (check-in: [48ef221c28] user: drh branch: malloc-enhancement, size: 27416)
16:34
[8394eba1c3] part of check-in [ac1f37a647] Make sure all memory from sqlite3DbMalloc() is freed by sqlite3DbFree() and all memory from sqlite3_malloc() is freed by sqlite3_free(). (check-in: [ac1f37a647] user: drh branch: malloc-enhancement, size: 21367)
11:28
[d321131022] part of check-in [9aa30342f4] Experimental code to measure memory consumed by database schemas and prepared statements. (check-in: [9aa30342f4] user: dan branch: experimental, size: 21012)
2010-07-23
17:32
[f8b9bcd134] part of check-in [80db61acca] Strenghten an assert() in malloc.c that helps to ensure that allocated memory is freed by the appropriate routine. (check-in: [80db61acca] user: drh branch: trunk, size: 20833)
2010-06-26
20:25
[09c3777bf7] part of check-in [f149b498b6] Fix two asserts on the scratch allocator to allow for up to two outstanding scratch allocations per thread. (check-in: [f149b498b6] user: drh branch: trunk, size: 20788)
2010-03-12
16:32
[a08f16d134] part of check-in [c2af2164cf] 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: [c2af2164cf] user: drh branch: trunk, size: 20766)
2009-11-10
01:30
[5fa175797f] part of check-in [f6c045f649] Remove the obsolete "$Id:$" RCS identifier strings from the source code. (check-in: [f6c045f649] user: drh branch: trunk, size: 19921)
2009-10-26
22:08
[685561d2f1] part of check-in [1d64e9453f] Remove some obsolete code within #if 0 that was causing developer concern. (check-in: [1d64e9453f] user: drh branch: trunk, size: 19978)
2009-08-18
14:48
[b1725183bc] part of check-in [577bd6f155] Fix obscure issues with the memsys5 memory allocator. Arrange that the xRealloc() interface to memory allocators is only called with a value that has been through xRoundup(). (check-in: [577bd6f155] user: drh branch: trunk, size: 20030)
2009-08-17
13:42
[ae9fef0039] part of check-in [98c49e6135] Enhanced documentation and minor code tweaks in preparation for hardening the sqlite3_initialize/shutdown interfaces against initialization failures. (check-in: [98c49e6135] user: drh branch: trunk, size: 20075)
2009-07-17
11:44
[561710bf4b] part of check-in [fb1b955dda] Code simplifications in support of structural testing. (CVS 6900) (check-in: [fb1b955dda] user: drh branch: trunk, size: 20039)
2009-07-16
18:21
[70d226282b] part of check-in [9452517981] Code simplifications and comment improvements in support of structural coverage testing. (CVS 6899) (check-in: [9452517981] user: drh branch: trunk, size: 20073)
2009-06-27
00:48
[16907f3b9d] part of check-in [653df0afcc] Fix a bug in sqlite3_realloc() - if called with a size of more than 2147483392 it returns 0 but it also releases the prior allocation. (CVS 6827) (check-in: [653df0afcc] user: drh branch: trunk, size: 20147)
2009-06-26
18:35
[55c4e99748] part of check-in [0d345e5923] Remove incorrect NEVER() macros from malloc.c. The allocations can be exceeded using sqlite3_malloc() and sqlite3_realloc(). (CVS 6826) (check-in: [0d345e5923] user: drh branch: trunk, size: 20123)
2009-05-03
20:23
[7b3b6423f5] part of check-in [a612299092] Changes to facility full coverage testing of util.c. (CVS 6597) (check-in: [a612299092] user: drh branch: trunk, size: 20337)
2009-03-24
15:08
[a1f0f8ae11] part of check-in [ea74d8dc62] Changes to insure that lookaside memory allocations are never used to hold schema content. Ticket #3743. (CVS 6377) (check-in: [ea74d8dc62] user: drh branch: trunk, size: 20365)
2009-03-23
17:49
[1d862da7eb] part of check-in [8a9f3e6606] Add asserts to make sure that database connection locks are held when accessing the lookaside memory allocation buffers. No defects were found. (CVS 6374) (check-in: [8a9f3e6606] user: drh branch: trunk, size: 20339)
04:33
[1a52c55bc0] part of check-in [db1d4d2f50] 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: [db1d4d2f50] user: danielk1977 branch: trunk, size: 20155)
2009-03-05
04:20
[b9c59b3353] part of check-in [6404afa0c5] Corrected typos and misspellings. Ticket #3702. (CVS 6336) (check-in: [6404afa0c5] user: shane branch: trunk, size: 20139)
2009-02-19
20:50
[072ddad9b7] part of check-in [e1ad757ec0] Remove code in malloc.c that was already commented out using #if 0. (CVS 6306) (check-in: [e1ad757ec0] user: drh branch: trunk, size: 20135)
2009-02-17
18:37
[552d993ee4] part of check-in [f6ba7bb915] Add tests to double-check that nothing within SQLite ever tries to allocate amounts of memory that are close to the maximum signed integer, leading to an integer overflow within malloc(). This is not currently a problem. The extra tests just insure it never becomes a problem. (CVS 6298) (check-in: [f6ba7bb915] user: drh branch: trunk, size: 23130)
16:29
[836bc7ead9] part of check-in [79431c58d9] Allow sqlite3_shutdown() to be called by a process before sqlite3_initialize() is. Prior to this commit such a call could segfault. (CVS 6296) (check-in: [79431c58d9] user: danielk1977 branch: trunk, size: 22430)
2009-01-20
16:53
[bc408056b1] part of check-in [1041abd678] When not compiling for an EBCDIC system, use built-in alternatives to the tolowe r(), toupper() and other ctype.h library functions. Ticket #3597. (CVS 6196) (check-in: [1041abd678] user: danielk1977 branch: trunk, size: 22383)
2008-12-16
17:20
[e2b4e6d703] part of check-in [8b8f6a6ab5] Fix a compile error in an assert() and a warning with MSVC builds. (CVS 6032) (check-in: [8b8f6a6ab5] user: shane branch: trunk, size: 22396)
13:46
[a0bd0c1115] part of check-in [13b56b7ff9] Make sure the memory returned from sqlite3ScratchMalloc() is 8-byte aligned. Ticket #3542. (CVS 6031) (check-in: [13b56b7ff9] user: drh branch: trunk, size: 22391)
2008-12-10
21:19
[1e5eeb5a30] part of check-in [ea01d43788] Additional work at eliminating silly compiler warnings. (CVS 6010) (check-in: [ea01d43788] user: drh branch: trunk, size: 22306)
19:26
[6a5b91159f] part of check-in [c872d55493] 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: [c872d55493] user: drh branch: trunk, size: 22289)
2008-12-05
15:24
[89c7c58fbe] part of check-in [46f2d08959] Make use of sqlite3DbMallocSize to maximize the size of growable buffers after each reallocation. Added new comments and testcase() macros to where.c. (CVS 5981) (check-in: [46f2d08959] user: drh branch: trunk, size: 22250)
2008-11-19
09:05
[4e7bf5a3fc] part of check-in [88134322c3] Changes to avoid "unused parameter" compiler warnings. (CVS 5921) (check-in: [88134322c3] user: danielk1977 branch: trunk, size: 22224)
2008-11-18
07:27
[00532787dc] part of check-in [d68e2795e7] Reduce the number of "missing initializer" warnings. (CVS 5915) (check-in: [d68e2795e7] user: danielk1977 branch: trunk, size: 22158)
2008-11-17
19:18
[4a12eb3798] part of check-in [8009220c36] Modifications to avoid unsigned/signed comparisons in various files. (CVS 5914) (check-in: [8009220c36] user: danielk1977 branch: trunk, size: 22134)
2008-10-12
00:27
[a213fb461b] part of check-in [ba3711acee] Added SQLITE_OMIT_DEPRECATED compile time option to leave out deprecated functions. Updated test scripts to skip tests of deprecated functions if they are compiled out. (CVS 5808) (check-in: [ba3711acee] user: shane branch: trunk, size: 22123)
2008-10-11
17:35
[08f39c0fbc] part of check-in [63dd8be70d] Fix to sqlite3DbMallocRaw() when SQLITE_OMIT_LOOKASIDE is defined so that once it fails it continues to fail. Add a comment explaining why this is important. (CVS 5804) (check-in: [63dd8be70d] user: drh branch: trunk, size: 22083)
15:38
[20613ebf46] part of check-in [0c4c66071a] Added an assert() to detect lookaside memory leaks. Also added the SQLITE_OMIT_LOOKASIDE compile-time option which is useful in trying to track down lookaside memory leaks. (CVS 5800) (check-in: [0c4c66071a] user: drh branch: trunk, size: 21393)
2008-09-23
16:41
[31f4ca218f] part of check-in [046ef07261] Always transform error code SQLITE_IOERR_NOMEM to SQLITE_NOMEM before returning. This was already happening in most places. (CVS 5738) (check-in: [046ef07261] user: danielk1977 branch: trunk, size: 21294)
2008-09-04
04:32
[6c3bcae8ee] part of check-in [821c387d15] Modified core to not call deprecated functions sqlite3_memory_alarm() and sqlite3_transfer_bindings() by adding sqlite3MemoryAlarm() and sqlite3TransferBindings(). sqlite3_memory_alarm() and sqlite3_transfer_bindings() are now simple wrappers for the new functions. In prep for adding SQLITE_OMIT_DEPRECATED. (CVS 5672) (check-in: [821c387d15] user: shane branch: trunk, size: 21260)
2008-09-02
17:52
[9aa2ef8052] part of check-in [88bfdc8747] Explicitly initialize at least the first field of every struct. This is to work around compilers that don't like the syntax "struct XXX { ... } yyy = {};". (CVS 5666) (check-in: [88bfdc8747] user: danielk1977 branch: trunk, size: 20981)
10:22
[fb23bfbcc5] part of check-in [46acaf58e1] Change some more global variables to work with OMIT_WSD. (CVS 5660) (check-in: [46acaf58e1] user: danielk1977 branch: trunk, size: 20971)
2008-09-01
18:34
[2ffd62fb4a] part of check-in [573d92abb9] Begin adding support for the SQLITE_OMIT_WSD macro. Some (many) WSD variables still need wrappers added to them. (CVS 5652) (check-in: [573d92abb9] user: danielk1977 branch: trunk, size: 20898)
2008-08-29
17:56
[6bd94746cc] part of check-in [4e011ddf9e] Move a call to sqlite3_mutex_leave() to protect calls to sqlite3StatusAdd() related to scratch (SQLITE_CONFIG_SCRATCH) memory. (CVS 5641) (check-in: [4e011ddf9e] user: danielk1977 branch: trunk, size: 20436)
2008-08-21
12:19
[7ccc630b35] part of check-in [d025866b09] Fix the functionality associated with sqlite3_release_memory() and sqlite3_soft_heap_limit(). It is automatically disabled if the SQLITE_CONFIG_PAGECACHE option is used. (CVS 5576) (check-in: [d025866b09] user: danielk1977 branch: trunk, size: 20436)
2008-08-20
14:49
[56918cddc4] part of check-in [cb494e10d7] Add the pcache module from the experimental branch. Also change things so that most of the built-in SQL functions are kept in single static hash-table, rather than creating and populating a separate hash table for each open database connection. (CVS 5566) (check-in: [cb494e10d7] user: danielk1977 branch: trunk, size: 20409)
2008-08-05
17:53
[22c68fc62f] part of check-in [c4e9b82406] Add SQLITE_STATUS_PAGECACHE_SIZE and SQLITE_STATUS_SCRATCH_SIZE. (CVS 5537) (check-in: [c4e9b82406] user: drh branch: trunk, size: 20388)
2008-08-01
16:31
[f0ad280083] part of check-in [6a6b94302a] Test cases for sqlite3_db_config() and sqlite3_db_status(). (CVS 5518) (check-in: [6a6b94302a] user: drh branch: trunk, size: 20168)
2008-07-31
17:16
[b1a337e2b9] part of check-in [e7ed0fe640] Change the definition of SQLITE_CONFIG_PAGECACHE and SQLITE_CONFIG_SCRATCH to omit the magic "+4" in the buffer size calculation. (CVS 5512) (check-in: [e7ed0fe640] user: drh branch: trunk, size: 20167)
2008-07-29
14:29
[9359e52a3e] part of check-in [0ce39c21f3] Enhancements to the pagecache malloc test configuration. Changes to the speed test scripts to use the new test enhancements. (CVS 5494) (check-in: [0ce39c21f3] user: drh branch: trunk, size: 19976)
2008-07-28
19:34
[2aa685ca13] part of check-in [e48f9697e9] Implement the "lookaside" memory allocation cache. Use of this cache makes the speed1.test script run about 15% faster. Added new interfaces to control the cache. (CVS 5488) (check-in: [e48f9697e9] user: drh branch: trunk, size: 19965)
2008-07-18
18:56
[c4b525896b] part of check-in [5c22132eb1] Use the actual size of memory allocations to update the memory status counters. Fix the roundup() function of mem3 to be much closer to the actual allocation size. Ticket #3226. (CVS 5440) (check-in: [5c22132eb1] user: drh branch: trunk, size: 18787)
2008-07-14
12:38
[b9ff4e02fe] part of check-in [518a24aa3e] Fix a bug introduced by check-in (5406). Ticket #3216. (CVS 5407) (check-in: [518a24aa3e] user: drh branch: trunk, size: 18704)
12:30
[3c11d9c2f6] part of check-in [2c24e50da6] Work around a bug in Borland C. Ticket #3216. (CVS 5406) (check-in: [2c24e50da6] user: drh branch: trunk, size: 18703)
2008-07-08
19:34
[226a532e9e] part of check-in [8ed04b1e26] Completely rework the sqlite3SetString() primitive so that it honors the SQLITE_LIMIT_LENGTH and avoids the use of strlen(). (CVS 5374) (check-in: [8ed04b1e26] user: drh branch: trunk, size: 18536)
2008-06-23
14:03
[f52166df8a] part of check-in [e6ea8f87c1] Fix some codewarrior compilation problems. (CVS 5278) (check-in: [e6ea8f87c1] user: danielk1977 branch: trunk, size: 19003)
11:11
[a3c5f9bf00] part of check-in [3240446853] Correct comments above sqlite3_release_memory() and sqlite3_soft_heap_limit(). Ticket #3138. (CVS 5275) (check-in: [3240446853] user: danielk1977 branch: trunk, size: 18979)
2008-06-21
08:12
[d4339af305] part of check-in [3d413e9b46] Fix a problem in the test suite that could cause a crash if using a pre-allocated block of memory for pages (the problem was that sqlite3_shutdown() was being called while there were still open database connections). (CVS 5259) (check-in: [3d413e9b46] user: danielk1977 branch: trunk, size: 18862)
2008-06-19
18:17
[66c0b17a66] part of check-in [d22cd2a59f] Move the malloc() failure simulation out of malloc.c and into a separate sqlite3_mem_methods interface. Still some related changes to come. (CVS 5250) (check-in: [d22cd2a59f] user: danielk1977 branch: trunk, size: 18158)
00:16
[33b8a20684] part of check-in [cb1f11cd97] Add some test logic to the new memory allocation subsystem. (Lots more needed.) The test suite is currently indicating memory leaks, though it is unclear if this is a true code problem or just an instrumentation problem. (CVS 5240) (check-in: [cb1f11cd97] user: drh branch: trunk, size: 18432)
2008-06-18
18:12
[56e48f8147] part of check-in [383a78601c] Added support for scratch-memory lookaside allocations. Largely untested. Added calls to sqlite3_initialize() within malloc APIs. (CVS 5237) (check-in: [383a78601c] user: drh branch: trunk, size: 15643)
17:09
[6f84f295db] part of check-in [5059644c4b] Implement the 'CONFIG_SINGLETHREAD' and 'CONFIG_MULTITHREAD' configuration modes. (CVS 5234) (check-in: [5059644c4b] user: danielk1977 branch: trunk, size: 13403)
2008-06-17
15:12
[7b622d22f2] part of check-in [3e797d0ffe] Add internal interfaces: PageMalloc/PageFree and ScratchMalloc/ScratchFree. (CVS 5226) (check-in: [3e797d0ffe] user: drh branch: trunk, size: 13425)
2008-06-15
02:51
[c5bdf8967d] part of check-in [65fe7b62cf] 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: [65fe7b62cf] user: drh branch: trunk, size: 13216)
2008-06-14
16:56
[ed5c365889] part of check-in [f00305f4cd] 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: [f00305f4cd] user: drh branch: trunk, size: 11791)
2008-03-26
18:34
[12c1ae98ef] part of check-in [8c2f69521f] Changes to delay freeing buffers associated with vdbe memory cells until either sqlite3_finalize() or sqlite3_release_memory() is called. (CVS 4922) (check-in: [8c2f69521f] user: danielk1977 branch: trunk, size: 5871)
2007-10-20
16:36
[60e392a4c1] part of check-in [b58c2b37a5] Add the new memory allocator to the amalgamation. Improvements to out-of-memory handling. (CVS 4498) (check-in: [b58c2b37a5] user: drh branch: trunk, size: 5800)
2007-08-29
14:06
[de4e77fe70] part of check-in [c790c234c3] Use the DbMalloc() and DbRealloc() functions more consistently. (CVS 4323) (check-in: [c790c234c3] user: danielk1977 branch: trunk, size: 5810)
12:31
[baed31e12b] part of check-in [e38ef81b85] Modifications to the malloc failure tests to test transient and persistent failures. (CVS 4321) (check-in: [e38ef81b85] user: danielk1977 branch: trunk, size: 5671)
2007-08-24
03:51
[d4282f5096] part of check-in [3a68fcddfa] The win32 driver compiles but does not yet work well. Many bugs fixed. (CVS 4282) (check-in: [3a68fcddfa] user: drh branch: trunk, size: 5197)
2007-08-22
20:18
[8078d4c3f9] part of check-in [db818430e9] The malloc.test script now passes all tests with no errors. (CVS 4271) (check-in: [db818430e9] user: drh branch: trunk, size: 5207)
00:39
[f5ace94319] part of check-in [1914044b88] Reenable the memory management logic. The quick.test script now runs with SQLITE_MEMDEBUG and SQLITE_ENABLE_MEMORY_MANAGEMENT. 7 minor errors. (CVS 4265) (check-in: [1914044b88] user: drh branch: trunk, size: 5200)
2007-08-21
19:33
[c291b07b6b] part of check-in [9287276191] The sqlite3_value object now carries an sqlite3* pointer to use for recording malloc failures. This eliminates the need to pass sqlite3* pointers into many internal interfaces. Also added more mutexing. (CVS 4263) (check-in: [9287276191] user: drh branch: trunk, size: 5238)
10:44
[c2f5da620d] part of check-in [fbbd5bda54] Remove unnecessary #includes of "os.h". New mutex implementations. (CVS 4255) (check-in: [fbbd5bda54] user: drh branch: trunk, size: 5326)
2007-08-16
10:09
[613c65f12f] part of check-in [77b1671351] More work on refactoring of malloc() interfaces. There are still many errors. (CVS 4233) (check-in: [77b1671351] user: danielk1977 branch: trunk, size: 5350)
04:30
[bec719bda3] part of check-in [deb7ecd65f] Half-way through a major refactoring of the memory allocation. I have not even attempted to compile so I am certain there are countless errors. (CVS 4231) (check-in: [deb7ecd65f] user: drh branch: trunk, size: 4863)
2007-08-08
01:04
[3850ab4a2e] part of check-in [c09ec102c4] Additional refinements on the amalgamation: Give a couple of constants file scope and add the SQLITE_API prefix to some interfaces that need it. Ticket #2554. (CVS 4199) (check-in: [c09ec102c4] user: drh branch: trunk, size: 24424)
2007-06-15
20:29
[fa9bbccc4e] part of check-in [7d3c1f08a3] Make arrangements to optionally print a debug message at the point of a simulated malloc() failure when SQLITE_MEMDEBUG is defined. (CVS 4077) (check-in: [7d3c1f08a3] user: drh branch: trunk, size: 24428)
2007-05-16
17:28
[07790014b4] part of check-in [93f811ec74] Change a few selected functions to macros to speed things up. (CVS 4015) (check-in: [93f811ec74] user: danielk1977 branch: trunk, size: 24260)
2007-05-05
11:48
Added: [b89e31258a] part of check-in [16041116aa] Refactoring. Split btreeInt.h off from btree.c. Split malloc.c off from util.c. Expect much more to follow. (CVS 3925) (check-in: [16041116aa] user: drh branch: trunk, size: 24432)