/ File History
Login

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

History of src/test_malloc.c

2018-06-19
19:01
OFD locks are now mostly working, but need additional tests. file: [baf1888c] check-in: [4f1fb5c9] user: drh branch: ofd-locks, size: 42488
2018-05-24
17:38
In the OOM testing logic, add the sqlite3FirstFault() routine as a place to set a breakpoint the first time any simulated OOM fault occurs for a single test case. file: [dec0aa82] check-in: [b4d80bd2] user: drh branch: trunk, size: 41938
2018-03-14
14:53
Add the SQLITE_DBSTATUS_CACHE_SPILL option to sqlite3_db_status() file: [5201422e] check-in: [3faeb851] user: drh branch: dbstatus-cache-spill, size: 41311
2017-08-28
15:51
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. file: [4f06a805] check-in: [54b00024] user: drh branch: trunk, size: 41243
2016-07-28
17:11
Make sure the SQLITE_TCLAPI macro is always defined and use it for all callback functions that must interface with the Tcl C API. file: [c05f6c40] check-in: [f2f1323c] user: mistachkin branch: callbackConv, size: 42474
14:37
Allow the 'testfixture.exe' target to be compiled with the __stdcall calling convention. file: [90cbc63e] check-in: [e8be3dfe] user: mistachkin branch: callbackConv, size: 42026
2016-07-06
18:12
Change the name of the SQLITE_DBSTATUS_PROPORTIONAL_CACHE_USED to SQLITE_DBSTATUS_CACHE_USED_SHARED. file: [6b27e947] check-in: [d58401ab] user: dan branch: dbstatus-prop-cache-used, size: 41951
10:12
Add the SQLITE_DBSTATUS_PROPORTIONAL_CACHE_USED sqlite3_db_status() parameter. file: [20954ab4] check-in: [118321c8] user: dan branch: dbstatus-prop-cache-used, size: 41959
2016-04-05
14:02
Make sure "0" intended as a NULL pointer is cast to a pointer when used in a varargs functions parameter. file: [94c18e88] check-in: [ed128e8b] user: drh branch: trunk, size: 41882
2015-12-07
16:43
Changes to avoid undefined behavior detected by analysis tools - never observed in the wild. Later: This check-in introduces a bug, fixed at [a304e34675404aee]. file: [96df9381] check-in: [a9e81908] user: drh branch: trunk, size: 41875
2015-11-26
22:12
The first argument to SQLITE_CONFIG_PAGECACHE, SQLITE_CONFIG_SCRATCH, and SQLITE_CONFIG_HEAP must always be a pointer. file: [8e1c2112] check-in: [5e14cadf] user: drh branch: trunk, size: 41853
2015-09-25
20:18
Fix a faulty assert() on the benign-malloc controller callback in test_malloc.c. file: [70ce9d5f] check-in: [64f2cb8d] user: drh branch: malloc-testing, size: 42411
16:29
Disable the SQLITE_TESTCTRL_BENIGN_MALLOC_HOOKS mechanism and replace it with SQLITE_TESTCTRL_BENIGN_MALLOC_CTRL, which gives better control. file: [8d0ffe32] check-in: [2c57b2f3] user: drh branch: malloc-testing, size: 42389
2015-07-24
17:14
Fix compiler warnings. Get the new sqlite3_result_zeroblob64() working on loadable extensions. file: [27d9e11b] check-in: [f8991e6f] user: drh branch: trunk, size: 41839
14:17
Modify a few test scripts to avoid leaving the sqlite3Config structure in a non-default state. file: [e19790f6] check-in: [562687d9] user: dan branch: trunk, size: 41853
2015-04-19
21:43
Fix harmless compiler warnings seen with MSVC 2015. file: [208f09a4] check-in: [d05becd8] user: mistachkin branch: vsix2015, size: 41791
2015-01-12
19:59
Silence some harmless uninitialized local variable warnings. file: [b9495384] check-in: [44375a34] user: mistachkin branch: msvcW4, size: 41784
2015-01-02
15:55
Add the SQLITE_CONFIG_PMASZ start-time option. file: [fffc66b2] check-in: [acb0d1e8] user: drh branch: trunk, size: 41776
2014-09-06
16:39
Fix typos in comments. No code changes. file: [ba34143f] check-in: [e62aab5e] user: peter.d.reid branch: trunk, size: 41174
03:16
Add the sqlite3_memdebug_title_count global variable, used during debugging to count the number of invocations of test_memdebug_settitle. By examining this variable in the debugger after a segfault, one can then set a breakpoint on test_memdebug_settitle that will fire just before the problem. file: [fdac9732] check-in: [27e3ca3e] user: drh branch: trunk, size: 41172
2014-08-25
23:44
Remove the SQLITE_CONFIG_WORKER_THREADS configuration parameter. The number of worker threads in the sorter is now determined only by the PRAGMA threads=N setting. file: [5368fb1d] check-in: [e3305d4b] user: drh branch: threads, size: 40938
2014-04-01
15:38
Even if compile time option SQLITE_MAX_WORKER_THREADS is set to one or greater, set the default number of worker threads to zero. Distribute data more evenly between threads in sqlite3VdbeSorterWrite() to improve performance when sorting large amounts of data. Add new test file sort2.test. file: [27047a84] check-in: [643c86a0] user: dan branch: threads, size: 41527
2013-11-25
21:49
Clarify docs for the SQLITE_CONFIG_WIN32_HEAPSIZE option. file: [1ff5b124] check-in: [51e87607] user: mistachkin branch: winHeapSize, size: 40937
2013-11-23
00:27
Add experimental sqlite3_config option to control the native Win32 heap size. file: [eec5258d] check-in: [f09f11e9] user: mistachkin branch: winHeapSize, size: 40932
2013-08-28
01:54
Fix several harmless compiler warnings. Fix a couple compiler issues with the shell. file: [eba4e1c5] check-in: [8917e9f9] user: mistachkin branch: mmapDisabled, size: 40210
2013-07-11
13:49
Remove the undocumented sqlite3_foreign_key_check() API and replace it with sqlite3_db_status(db, SQLITE_DBSTATUS_DEFERRED_FKS, ...). Add test cases for the new functionality. file: [a1058012] check-in: [d39e65fe] user: drh branch: sessions, size: 40201
2013-04-29
03:09
More refinements to Windows OSTRACE usage. Replace all usage of sqlite3TestErrorName() with sqlite3ErrName() and add missing return codes. file: [2855429b] check-in: [05ba5e23] user: mistachkin branch: winOsTrace, size: 40133
2012-12-08
06:46
Merge updates from trunk. file: [c0f02f9f] check-in: [e65db42c] user: mistachkin branch: configReadOnly, size: 41185
2012-12-04
00:37
Fix an out-of-order function declaration when compiled with MEMDEBUG. file: [6982a357] check-in: [6d315578] user: mistachkin branch: trunk, size: 40148
2012-10-03
20:20
Add experimental sqlite3_reconfig() interface to more fully support the SQLITE_CONFIG_READONLY option. file: [b813ffd7] check-in: [9dc2eaa6] user: mistachkin branch: configReadOnly, size: 41185
2012-09-25
12:45
Merge updates from trunk. file: [3f259439] check-in: [4a470741] user: mistachkin branch: configReadOnly, size: 40824
2012-09-17
20:44
Add the ability to disable the covering-index-scan optimization at compile-time, start-time, or at run-time. Add test cases to check this configurability. file: [01cd65ae] check-in: [ccb8ecc3] user: drh branch: fullscan-covering-index, size: 40148
2012-09-10
10:29
Initial prototype of SQLITE_CONFIG_READONLY. file: [2fdd098d] check-in: [7c340165] user: mistachkin branch: configReadOnly, size: 40118
08:48
Make header comments for some Tcl test commands more consistent. No changes to code. file: [7c8e2511] check-in: [af870ca9] user: mistachkin branch: trunk, size: 39442
2012-03-24
19:44
Add SQLITE_DBSTATUS_CACHE_WRITE. Used to query a database connection for the cumulative number of database pages written. file: [3f5903a1] check-in: [3cb6a879] user: dan branch: fts4-incr-merge, size: 39467
2012-01-30
18:00
Fix compiler warnings in the TCL test harness. file: [cfe25d74] check-in: [c4cd38a0] user: drh branch: trunk, size: 39399
2011-09-20
15:53
Add SQLITE_STMTSTATUS_CACHE_HIT/MISS and SQLITE_DB_STATUS_CACHE_HIT/MISS. For querying the number of pager cache hits and misses on a statement or connection basis. file: [8d416f29] check-in: [89272357] user: dan branch: cache-stats, size: 39496
2011-08-25
18:54
Fix harmless compiler warnings in test code. No changes to the core. file: [91d5cf17] check-in: [16f83fec] user: drh branch: trunk, size: 39357
2011-04-22
19:37
Add the start of the "uri-filenames" feature. file: [7ca7be34] check-in: [b8a8132e] user: dan branch: uri, size: 39324
2010-12-21
21:28
Add test cases for the new lookaside hit and miss status outputs. Add the output of lookaside hit and miss to the command-line shell statistics. file: [fd6188b1] check-in: [b0888047] user: drh branch: trunk, size: 38629
2010-08-09
14:47
Change to tcl test infrastructure so that --malloctrace=1 works when sizeof(int)!=sizeof(void*). file: [09a88f0c] check-in: [c3e771b3] user: dan branch: experimental, size: 38357
2010-07-26
18:43
Add the SQLITE_STATUS_MALLOC_COUNT option for sqlite3_status(). file: [058e41dc] check-in: [8f8e442b] user: drh branch: trunk, size: 38170
2010-07-24
11:28
Experimental code to measure memory consumed by database schemas and prepared statements. file: [76bce0d5] check-in: [9aa30342] user: dan branch: experimental, size: 38090
2010-07-02
11:27
Additional test cases to cover branches in pager.c. file: [4ab85f2b] check-in: [eddfb2b4] user: dan branch: trunk, size: 37933
2010-03-10
21:42
Add the SQLITE_DBSTATUS_CACHE_SIZE verb for sqlite3_db_status(). The highwater mark does not yet work on this verb. file: [2842c922] check-in: [418c6d81] user: drh branch: trunk, size: 37367
2009-11-10
01:30
Remove the obsolete "$Id:$" RCS identifier strings from the source code. file: [f777d15d] check-in: [f6c045f6] user: drh branch: trunk, size: 37288
2009-07-01
18:09
Change to test code and scripts allowing memsys3 to be tested using a build that has both memsys3 and memsys5 enabled. (CVS 6834) file: [d054506b] check-in: [a00aeec2] user: danielk1977 branch: trunk, size: 37358
2009-04-07
11:21
Change "... myfunction() { ... }" to "... myfunction(void) { ... }" in a few pla ces. Ticket #3783. (CVS 6462) file: [c3aabe4b] check-in: [6f79e6ae] user: danielk1977 branch: trunk, size: 36856
2009-02-04
15:27
Fix a bug in test_malloc.c whereby running multi-threaded test cases could cause subsequent OOM tests to fail. (CVS 6254) file: [d23050c7] check-in: [03ea9e59] user: danielk1977 branch: trunk, size: 36848
2009-01-07
03:59
Add a HIGHSTRESS parameter to the sqlite3_config_alt_pcache debugging command in the test harness - to force calling pagerStress() more frequently. (CVS 6127) file: [cf348d78] check-in: [e426860b] user: drh branch: trunk, size: 36425
2008-11-19
01:20
Add an alternative application-defined pcache implementation and add test cases to permutations.test to invoke it. Added the SQLITE_CONFIG_GETPCACHE method to sqlite3_config(). (CVS 5920) file: [5127337c] check-in: [16f1e6ec] user: drh branch: trunk, size: 36179
2008-11-10
18:05
Removed a few more small parts of memsys6 code, including some config and test code for it; (CVS 5872) file: [e2f6e677] check-in: [a11241d6] user: shane branch: trunk, size: 34798
2008-10-15
11:43
After running speed1.test and speed1p.test, reset the size of the lookaside buffer. Otherwise, subsequent runs of malloc5.test may report an error. Changes to test code only. (CVS 5824) file: [243244eb] check-in: [9283478e] user: danielk1977 branch: trunk, size: 35368
2008-10-10
17:41
Simplify the symbol hash table to use only a single key class. Other changes to improve code coverage. (CVS 5794) file: [c4e5e3ea] check-in: [ff50a8a7] user: drh branch: trunk, size: 35134
2008-08-05
17:53
Add SQLITE_STATUS_PAGECACHE_SIZE and SQLITE_STATUS_SCRATCH_SIZE. (CVS 5537) file: [49abbf5d] check-in: [c4e9b824] user: drh branch: trunk, size: 34799
2008-08-04
20:13
Separate verbs of sqlite3_config() and sqlite3_db_config() into their own namespaces. Allow SQLITE3_DBCONFIG_LOOKASIDE to specific an external memory buffer. (CVS 5536) file: [75f639a7] check-in: [5dd865da] user: drh branch: trunk, size: 34639
2008-08-01
16:31
Test cases for sqlite3_db_config() and sqlite3_db_status(). (CVS 5518) file: [3919ed15] check-in: [6a6b9430] user: drh branch: trunk, size: 34009
2008-07-31
17:16
Change the definition of SQLITE_CONFIG_PAGECACHE and SQLITE_CONFIG_SCRATCH to omit the magic "+4" in the buffer size calculation. (CVS 5512) file: [43668d9c] check-in: [e7ed0fe6] user: drh branch: trunk, size: 32950
2008-07-29
14:29
Enhancements to the pagecache malloc test configuration. Changes to the speed test scripts to use the new test enhancements. (CVS 5494) file: [398f670f] check-in: [0ce39c21] user: drh branch: trunk, size: 32958
2008-07-28
19:34
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) file: [f7603007] check-in: [e48f9697] user: drh branch: trunk, size: 32963
2008-07-25
15:39
Add the capability to track the maximum depth of the LALR(1) parser stack so that critical applications can check to see if they are getting close to limits. (CVS 5481) file: [daacb056] check-in: [ef0250f3] user: drh branch: trunk, size: 29947
08:49
Updates to mem6.c allocator. (CVS 5473) file: [cd90645e] check-in: [43a4cae2] user: danielk1977 branch: trunk, size: 29875
2008-07-24
08:20
Add mem6.c, a new allocator. More to come. (CVS 5467) file: [e898fc34] check-in: [192bc192] user: danielk1977 branch: trunk, size: 29762
2008-07-16
12:25
Activate testing of mem3 and mem5. Fix problems found. Tickets #3223 and #3225. Other test configuration changes. (CVS 5419) file: [a77b0425] check-in: [a3a78205] user: drh branch: trunk, size: 29303
2008-07-11
16:15
Additional test coverage for the btree module. Remove the failsafe() macro and replace it with ALWAYS() and NEVER(). (CVS 5395) file: [e655e3ff] check-in: [d7e2f0d2] user: drh branch: trunk, size: 29202
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: [4f07302a] check-in: [ed8b2525] user: drh branch: trunk, size: 29282
2008-07-09
16:51
Test coverage improvements on printf. (CVS 5385) file: [e9e1500f] check-in: [2d8f7beb] user: drh branch: trunk, size: 28982
13:28
Begin adding the failsafe() macro. (CVS 5383) file: [e762a634] check-in: [8aae4fe7] user: drh branch: trunk, size: 28953
2008-06-27
14:05
Fix mem3.c (broken by (5320)). (CVS 5321) file: [62296810] check-in: [fef90a21] user: danielk1977 branch: trunk, size: 28881
13:27
Change mem5.c so that the minimum allocation size is runtime configurable. (CVS 5320) file: [68da4add] check-in: [4f95f4cd] user: danielk1977 branch: trunk, size: 29594
2008-06-25
14:26
Fix the allocator in mem5.c so that it can be enabled at run time using the sqlite3_config() function. (CVS 5304) file: [db4b54a8] check-in: [30ff6bb0] user: danielk1977 branch: trunk, size: 28415
10:34
Fix up some details to do with the mem3.c (memsys3) allocator. If the library is compiled with SQLITE_ENABLE_MEMSYS3, the memsys3 allocator can be selected at runtime. (CVS 5303) file: [9cb0a261] check-in: [9c6c8e01] user: danielk1977 branch: trunk, size: 27830
2008-06-24
19:02
Modify the memory allocation system in mem3.c so to fit in with the new sqlite3_mem_methods scheme. At this point it only "mostly" works. (CVS 5297) file: [e16aea43] check-in: [3febef54] user: danielk1977 branch: trunk, size: 27203
2008-06-20
14:59
Add a mode to the sqlite3_test_control() interface to register hooks called at the beginning and end of "benign malloc failure" blocks. This allows malloc() failure testing to be done using public APIs only. (CVS 5254) file: [27d4a2c3] check-in: [56c8af14] user: danielk1977 branch: trunk, size: 26389
11:05
Move (almost all) malloc failure test logic from fault.c to test_malloc.c. (CVS 5253) file: [cc4111e1] check-in: [4ae21e34] user: danielk1977 branch: trunk, size: 25859
2008-06-19
18:17
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) file: [8c8c0b5c] check-in: [d22cd2a5] user: danielk1977 branch: trunk, size: 21636
00:16
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) file: [dc6d2565] check-in: [cb1f11cd] user: drh branch: trunk, size: 20974
2008-06-18
18:12
Added support for scratch-memory lookaside allocations. Largely untested. Added calls to sqlite3_initialize() within malloc APIs. (CVS 5237) file: [d44d9ee7] check-in: [383a7860] user: drh branch: trunk, size: 19214
2008-05-29
02:57
Unused functions in testfixture.exe with certain defines. (CVS 5172) file: [5c2c6983] check-in: [5e3ff1bb] user: shane branch: trunk, size: 16751
2008-03-28
15:44
Changes to the Mem structure to reduce the frequency of freeing and reallocating the dynamic buffer. (CVS 4928) file: [c92a65e8] check-in: [d0bf73d8] user: danielk1977 branch: trunk, size: 16705
12:53
Patch to the new memory tracing logic that allows it to build even if memory debugging is turned off. (CVS 4927) file: [3be391af] check-in: [0a9c63b2] user: drh branch: trunk, size: 16696
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: [dd79eafc] check-in: [f1b97ed9] user: danielk1977 branch: trunk, size: 16674
2008-03-25
09:47
Use a vdbe memory cell to allocate the space required for vdbe cursors. (CVS 4912) file: [eedcc63c] check-in: [04715364] user: danielk1977 branch: trunk, size: 16429
2008-03-21
14:22
Add some more logging to the malloc system used when SQLITE_MEMDEBUG is defined. (CVS 4901) file: [52d8d700] check-in: [79738f58] user: danielk1977 branch: trunk, size: 16427
2008-03-18
13:01
Minor test coverage enhancements. (CVS 4877) file: [bba50714] check-in: [edd207b9] user: drh branch: trunk, size: 13188
00:07
Add the ability to simulate out-of-memory errors when using the default memory allocator, mem1.c. Fix a bug that this enhancement revealed. (CVS 4875) file: [cdad54dc] check-in: [d55a5e1c] user: drh branch: trunk, size: 13108
2008-02-19
15:15
Change non-exported memory interfaces to following the naming conventions. (CVS 4797) file: [85e70234] check-in: [94774b41] user: drh branch: trunk, size: 13187
2008-02-18
22:24
Add the memory fault simulator to mem5.c. Enable soft heap limit on mem5.c. Limit the size of hash tables and the vdbefifo when using mem5.c. (CVS 4795) file: [cd0ac012] check-in: [63da5d97] user: drh branch: trunk, size: 13205
2008-02-16
16:21
The power-of-two first-fit memory allocator is now working. (CVS 4793) file: [6a47772a] check-in: [d134d29c] user: drh branch: trunk, size: 13163
2008-02-13
18:25
Where possible, avoid freeing buffers allocated for vdbe memory cells in case they can be reused. (CVS 4783) file: [f57e6327] check-in: [990237e2] user: danielk1977 branch: trunk, size: 13128
2008-01-31
14:43
Add the sqlite3_test_control() API. Use it to control the fault injector. (CVS 4758) file: [0bc9d27c] check-in: [413ddade] user: drh branch: trunk, size: 12498
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: [7ba7e0c2] check-in: [1a335e18] user: drh branch: trunk, size: 12226
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: [72ceed19] check-in: [8487ca82] user: drh branch: trunk, size: 12240
2007-09-03
07:31
Fixes to test code so that the test suite passes without SQLITE_MEMDEBUG defined. (CVS 4370) file: [c34e7696] check-in: [ed2a2e01] user: danielk1977 branch: trunk, size: 9887
2007-08-30
15:46
Check in extra fixes for malloc4.test. (CVS 4341) file: [35310c51] check-in: [49ce3a83] user: danielk1977 branch: trunk, size: 9885
2007-08-29
12:31
Modifications to the malloc failure tests to test transient and persistent failures. (CVS 4321) file: [9f26ba34] check-in: [e38ef81b] user: danielk1977 branch: trunk, size: 9219
2007-08-24
03:51
The win32 driver compiles but does not yet work well. Many bugs fixed. (CVS 4282) file: [5f5566bb] check-in: [3a68fcdd] user: drh branch: trunk, size: 8330
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: [9d5fb38b] check-in: [21f6b310] user: drh branch: trunk, size: 8853
2007-08-22
22:04
All of the malloc test cases run. Still seeing failures in malloc4.test. (CVS 4272) file: [1e24e6bf] check-in: [205d0b88] user: drh branch: trunk, size: 7661
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: [d9ba6be8] check-in: [1dad2c0a] user: drh branch: trunk, size: 7073
19:16
Test infrastructure for the new memory subsystem. (CVS 4229) file: [3f47498a] check-in: [9e506656] user: drh branch: trunk, size: 5914 Added