aboutsummaryrefslogtreecommitdiff
path: root/src/test_malloc.c
Commit message (Collapse)AuthorAge
* GCC 13 has become more quite pedantic about the signature of functions ↵drh2025-01-13
| | | | | | | | | matching the type of pointers through which the functions are called. Make adjustments to extension functions and test procedures to work around this. No changes to the core. FossilOrigin-Name: ed83b79100b4345235aec990303c4526874f0c2f8701160c4639a80633ebaf70
* First attempt at getting the build to work with Tcl 9.0.drh2024-07-30
| | | FossilOrigin-Name: 6e5bb48a74d63fb8c30528f0005d1763cd2dbb882abf86baf1565721e6bfcf84
* Modifications to test code so that the sqlite3MemdebugHastype() assert() ↵dan2020-07-16
| | | | | statements are enabled for Tcl tests. FossilOrigin-Name: e3c423cb1407c06a3806ae6304e4713c37cd446f4cc399731884e3d009938e57
* In the OOM testing logic, add the sqlite3FirstFault() routine as a place todrh2018-05-24
| | | | | | set a breakpoint the first time any simulated OOM fault occurs for a single test case. FossilOrigin-Name: b4d80bd287ca7f3a6d182ba2435273266035b94fdf6a44047a64a4eff931c571
* Add the SQLITE_DBSTATUS_CACHE_SPILL option to sqlite3_db_status()drh2018-03-14
| | | FossilOrigin-Name: 3faeb851374471a6f94a6fab3a62c73d03330eae6fc72cd1a277b03ad12dcdd0
* Remove the rarely-used scratch memory allocator. This makes the code smaller,drh2017-08-28
| | | | | | | 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. FossilOrigin-Name: 54b000246cfb5c7b8adb61a17357ef5a49adddde9e48e8937834d5ba0beb8a6b
* Make sure the SQLITE_TCLAPI macro is always defined.mistachkin2016-07-28
| | | FossilOrigin-Name: f2f1323cc4d2ad2d6794dbfae8d50b747213e85d
* Allow the 'testfixture.exe' target to be compiled with the __stdcall calling ↵mistachkin2016-07-28
| | | | | convention. FossilOrigin-Name: e8be3dfeabaa31b3490793cf8230faae1204be15
* Change the name of the SQLITE_DBSTATUS_PROPORTIONAL_CACHE_USED to ↵dan2016-07-06
| | | | | SQLITE_DBSTATUS_CACHE_USED_SHARED. FossilOrigin-Name: d58401ab26c7c5417eb7d540f47d11c4e49edcb2
* Add the SQLITE_DBSTATUS_PROPORTIONAL_CACHE_USED sqlite3_db_status() parameter.dan2016-07-06
| | | FossilOrigin-Name: 118321c8b9d88b8f439c952436f42838c3fc80cb
* Make sure "0" intended as a NULL pointer is cast to a pointer when useddrh2016-04-05
| | | | | in a varargs functions parameter. FossilOrigin-Name: ed128e8b826cd9620b7146d01d461ed28b9a672d
* Changes to avoid obscure, theoretical undefined behavior. This is preventativedrh2015-12-07
| | | | | measures only - no actual problems observed on tested compilers. FossilOrigin-Name: a9e819082ba19e72db03bba37edfb7702ff489a5
* The first argument to SQLITE_CONFIG_PAGECACHE, SQLITE_CONFIG_SCRATCH, anddrh2015-11-26
| | | | | SQLITE_CONFIG_HEAP must always be a pointer. FossilOrigin-Name: 5e14cadff09d7425c8e1cc5e817f2b0609e52a46
* Fix compiler warnings. Get the new sqlite3_result_zeroblob64() workingdrh2015-07-24
| | | | | on loadable extensions. FossilOrigin-Name: f8991e6f726485301c80d2dbb05e7d5c0d283b5d
* Modify a few test scripts to avoid leaving the sqlite3Config structure in a ↵dan2015-07-24
| | | | | non-default state. FossilOrigin-Name: 562687d9f56bf4bb0f5f07f97cbbb7649c81faf8
* Fix harmless compiler warnings seen with MSVC 2015.mistachkin2015-04-19
| | | FossilOrigin-Name: d05becd873a03a366843a34e7f4c732dd8f88c86
* Silence some harmless uninitialized local variable warnings.mistachkin2015-01-12
| | | FossilOrigin-Name: 44375a34e59d1b0f0d765a99dcc7e6f30a4be7f7
* Add the SQLITE_CONFIG_PMASZ start-time option.drh2015-01-02
| | | FossilOrigin-Name: acb0d1e8324f19da3d4d577d58748848de1bcef7
* Fix typos in comments. No code changes.peter.d.reid2014-09-06
| | | FossilOrigin-Name: e62aab5e9290503869e1f4d5e0fefd2b4dee0a69
* Add the sqlite3_memdebug_title_count global variable, used during debuggingdrh2014-09-06
| | | | | | | 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. FossilOrigin-Name: 27e3ca3e0f1da54e3527704a8601bb9003b086bf
* Remove the SQLITE_CONFIG_WORKER_THREADS configuration parameter. The numberdrh2014-08-25
| | | | | | of worker threads in the sorter is now determined only by the PRAGMA threads=N setting. FossilOrigin-Name: e3305d4b4efcbe06945ce7f6ec0f2e864244aaf9
* Even if compile time option SQLITE_MAX_WORKER_THREADS is set to one or ↵dan2014-04-01
| | | | | 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. FossilOrigin-Name: 643c86a056168e39fcb7f39b8a72731f1eb246db
* Clarify docs for the SQLITE_CONFIG_WIN32_HEAPSIZE option.mistachkin2013-11-25
| | | FossilOrigin-Name: 51e876074af4e34ba01ed122e3bcc042243c9e88
* Add experimental sqlite3_config option to control the native Win32 heap size.mistachkin2013-11-23
| | | FossilOrigin-Name: f09f11e94b5a7c2e51d99c3700d2acd2f3903de9
* Fix several harmless compiler warnings. Fix a couple compiler issues with ↵mistachkin2013-08-28
| | | | | the shell. FossilOrigin-Name: 8917e9f9a0802cbfb6f33e2ab1c2f98e4df5babd
* Add the "defer_foreign_keys" pragma and the SQLITE_DBSTATUS_DEFERRED_FKSdrh2013-07-11
| | | | | | value for sqlite3_db_status(). This is a cherry-pick of a sequence of five checkins in the sessions branch between [1d44e5d3c2] and [d39e65fe70]. FossilOrigin-Name: 527121ac3cdc96ac33ad975c227a6685a2f7e999
* More refinements to Windows OSTRACE usage. Replace all usage of ↵mistachkin2013-04-29
| | | | | sqlite3TestErrorName() with sqlite3ErrName() and add missing return codes. FossilOrigin-Name: 05ba5e23fcc5da416d47a8ad5e667ed6a0c7a34a
* Fix an out-of-order function declaration when compiled with MEMDEBUG.mistachkin2012-12-04
| | | FossilOrigin-Name: 6d31557837fef2c8fad6f009ac6dd97dd4af0a54
* Add the ability to disable the covering-index-scan optimization at compile-time,drh2012-09-17
| | | | | start-time, or at run-time. Add test cases to check this configurability. FossilOrigin-Name: ccb8ecc30c8e6c7760131250297c2e452bbac43b
* Make header comments for some Tcl test commands more consistent. No changes ↵mistachkin2012-09-10
| | | | | to code. FossilOrigin-Name: af870ca9827d2079a35dbb545660f670c7ca9512
* Add SQLITE_DBSTATUS_CACHE_WRITE. Used to query a database connection for the ↵drh2012-03-24
| | | | | cumulative number of database pages written. FossilOrigin-Name: 05f98d4eec0f029b76fd471f8d9edf2807de6b55
* Fix compiler warnings in the TCL test harness.drh2012-01-30
| | | FossilOrigin-Name: c4cd38a0c71e2887e47bebb9d10baf30802a7f13
* Add the SQLITE_DB_STATUS_CACHE_HIT and MISS options. For querying the number ↵dan2011-09-22
| | | | | of cache hits and misses on a per-connection basis. FossilOrigin-Name: 5100b6e9dc5107f0f835d0aac26fe6d4938ffc73
* Fix harmless compiler warnings in test code. No changes to the core.drh2011-08-25
| | | FossilOrigin-Name: 16f83fec77668c021694fbb189b415bd3b90adc8
* Add the start of the "uri-filenames" feature.dan2011-04-22
| | | FossilOrigin-Name: b8a8132e7148a7c90ca1352f20ab71d97b0bc4b0
* Add test cases for the new lookaside hit and miss status outputs. Adddrh2010-12-21
| | | | | the output of lookaside hit and miss to the command-line shell statistics. FossilOrigin-Name: b0888047bb6d9ac55e29b9224df2ff650728bb78
* Change to tcl test infrastructure so that --malloctrace=1 works when ↵dan2010-08-09
| | | | | sizeof(int)!=sizeof(void*). FossilOrigin-Name: c3e771b3cf685f4237a2516ee7111849bf0ffb3f
* Add the SQLITE_STATUS_MALLOC_COUNT option for sqlite3_status().drh2010-07-26
| | | FossilOrigin-Name: 8f8e442b3af553753e25c304efa289b626e3a227
* Experimental code to measure memory consumed by database schemas and ↵dan2010-07-24
| | | | | prepared statements. FossilOrigin-Name: 9aa30342f4de4eff630520ea8e07ad253d3f0877
* Additional test cases to cover branches in pager.c.dan2010-07-02
| | | FossilOrigin-Name: eddfb2b4062f8a8b907f0c7bc08a05c16692e900
* Add the SQLITE_DBSTATUS_CACHE_SIZE verb for sqlite3_db_status(). The drh2010-03-10
| | | | | highwater mark does not yet work on this verb. FossilOrigin-Name: 418c6d8113bc337556b0d47acfd6a7d865d1121f
* Remove the obsolete "$Id:$" RCS identifier strings from the source code.drh2009-11-10
| | | FossilOrigin-Name: f6c045f649036958078cb15cd9d5453680c82b0c
* Change to test code and scripts allowing memsys3 to be tested using a build ↵danielk19772009-07-01
| | | | | that has both memsys3 and memsys5 enabled. (CVS 6834) FossilOrigin-Name: a00aeec21cca7ccf19d4cdef618149aa2773c005
* Change "... myfunction() { ... }" to "... myfunction(void) { ... }" in a few pladanielk19772009-04-07
| | | | | ces. Ticket #3783. (CVS 6462) FossilOrigin-Name: 6f79e6ae0d30948db4ba26bb5b448c15c470464f
* Fix a bug in test_malloc.c whereby running multi-threaded test cases could ↵danielk19772009-02-04
| | | | | cause subsequent OOM tests to fail. (CVS 6254) FossilOrigin-Name: 03ea9e591337a3c442080ee7cd01cc4ee85c1357
* Add a HIGHSTRESS parameter to the sqlite3_config_alt_pcache debuggingdrh2009-01-07
| | | | | | command in the test harness - to force calling pagerStress() more frequently. (CVS 6127) FossilOrigin-Name: e426860b94f5b47e3a265549dbac64a421cae425
* Add an alternative application-defined pcache implementation and add testdrh2008-11-19
| | | | | | cases to permutations.test to invoke it. Added the SQLITE_CONFIG_GETPCACHE method to sqlite3_config(). (CVS 5920) FossilOrigin-Name: 16f1e6ec2ad92f68c0079a0c2b5ca08a3b4af816
* Removed a few more small parts of memsys6 code, including some config and ↵shane2008-11-10
| | | | | test code for it; (CVS 5872) FossilOrigin-Name: a11241d6fbc9e0408d5adc73d494b85124d2d609
* After running speed1.test and speed1p.test, reset the size of the lookaside ↵danielk19772008-10-15
| | | | | buffer. Otherwise, subsequent runs of malloc5.test may report an error. Changes to test code only. (CVS 5824) FossilOrigin-Name: 9283478e69d84aa99b2d4636587c8c0b34e7c4da
* Simplify the symbol hash table to use only a single key class. Otherdrh2008-10-10
| | | | | changes to improve code coverage. (CVS 5794) FossilOrigin-Name: ff50a8a7e5a15fac192939ff3206fa18d1c5a6dd