aboutsummaryrefslogtreecommitdiff
path: root/src/malloc.c
Commit message (Collapse)AuthorAge
...
* Add virtual table test cases to dbstatus.test.dan2010-07-26
| | | FossilOrigin-Name: 72b84d066a4eac90a77142c3ea66ef3d21a1104e
* Make sure all memory from sqlite3DbMalloc() is freed by sqlite3DbFree()drh2010-07-26
|\ | | | | | | | | and all memory from sqlite3_malloc() is freed by sqlite3_free(). FossilOrigin-Name: 629e38a8c9e31111e351fe4625a5835576d23584
| * Make sure all memory from sqlite3DbMalloc() is freed by sqlite3DbFree() anddrh2010-07-24
| | | | | | | | | | all memory from sqlite3_malloc() is freed by sqlite3_free(). FossilOrigin-Name: ac1f37a647e9ed1c00a901d26d9956a86c40117a
* | Experimental code to measure memory consumed by database schemas and ↵dan2010-07-24
|/ | | | | prepared statements. FossilOrigin-Name: 9aa30342f4de4eff630520ea8e07ad253d3f0877
* Strenghten an assert() in malloc.c that helps to ensure that allocated memorydrh2010-07-23
| | | | | is freed by the appropriate routine. FossilOrigin-Name: 80db61acca034a8edff0fd23a65a0bbc9206a7b3
* Fix two asserts on the scratch allocator to allow for up to two outstandingdrh2010-06-26
| | | | | scratch allocations per thread. FossilOrigin-Name: f149b498b6ada3fc9f71ee104c351554c80c7f8a
* Add assert()s to mem2.c (activated by SQLITE_MEMDEBUG) which verify thatdrh2010-03-12
| | | | | | memory alloctions that might have come from lookaside are always freed using a lookaside-aware free routine. FossilOrigin-Name: c2af2164cf7b279ebb3e08201561348be6e765df
* Remove the obsolete "$Id:$" RCS identifier strings from the source code.drh2009-11-10
| | | FossilOrigin-Name: f6c045f649036958078cb15cd9d5453680c82b0c
* Remove some obsolete code within #if 0 that was causing developer concern.drh2009-10-26
| | | FossilOrigin-Name: 1d64e9453fb59d2bb1b5cb0cbacaf135b8f928c3
* Fix obscure issues with the memsys5 memory allocator. Arrange that thedrh2009-08-18
| | | | | | xRealloc() interface to memory allocators is only called with a value that has been through xRoundup(). FossilOrigin-Name: 577bd6f15556b7f6d86ee5167353fdd535577bf6
* Enhanced documentation and minor code tweaks in preparation for hardeningdrh2009-08-17
| | | | | the sqlite3_initialize/shutdown interfaces against initialization failures. FossilOrigin-Name: 98c49e6135ae6268a80de88f8b0284f88ef32e1d
* Code simplifications in support of structural testing. (CVS 6900)drh2009-07-17
| | | FossilOrigin-Name: fb1b955dda5105025ef199880afa871e44331d65
* Code simplifications and comment improvements in support of structuraldrh2009-07-16
| | | | | coverage testing. (CVS 6899) FossilOrigin-Name: 945251798144110787b197f9eb552a2dd4a25cb4
* Fix a bug in sqlite3_realloc() - if called with a size of more thandrh2009-06-27
| | | | | 2147483392 it returns 0 but it also releases the prior allocation. (CVS 6827) FossilOrigin-Name: 653df0afcc58de82c8c1b5f6a7b2f4829ff69792
* Remove incorrect NEVER() macros from malloc.c. The allocations can bedrh2009-06-26
| | | | | exceeded using sqlite3_malloc() and sqlite3_realloc(). (CVS 6826) FossilOrigin-Name: 0d345e5923ff92a87195f6c04a29a56bf67ee43c
* Changes to facility full coverage testing of util.c. (CVS 6597)drh2009-05-03
| | | FossilOrigin-Name: a612299092a48b38c5f9cf430bbcaf41777cbcb3
* Changes to insure that lookaside memory allocations are never used to hold drh2009-03-24
| | | | | | schema content. Ticket #3743. (CVS 6377) FossilOrigin-Name: ea74d8dc62f5784089aa8ef098e97c505a79b176
* Add asserts to make sure that database connection locks are held whendrh2009-03-23
| | | | | accessing the lookaside memory allocation buffers. No defects were found. (CVS 6374) FossilOrigin-Name: 8a9f3e66069146ad1b1bc2686567882dc87603a9
* Use the ROUND8() macro to round an integer up to the nearest multiple of 8 ↵danielk19772009-03-23
| | | | | and ROUNDDOWN8() macro to round down to the nearest multiple of 8. This is a cosmetic change. (CVS 6372) FossilOrigin-Name: db1d4d2f5083adf5438c7f387b115180800e7bd9
* Corrected typos and misspellings. Ticket #3702. (CVS 6336)shane2009-03-05
| | | FossilOrigin-Name: 6404afa0c515a6536fc2e878d4fb451e4dc06942
* Remove code in malloc.c that was already commented out using #if 0. (CVS 6306)drh2009-02-19
| | | FossilOrigin-Name: e1ad757ec0abead25265f9251c954d2497bccc06
* Add tests to double-check that nothing within SQLite ever tries to allocatedrh2009-02-17
| | | | | | | 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) FossilOrigin-Name: f6ba7bb9152cffc9f67dfa7de12e36a3244b7e03
* Allow sqlite3_shutdown() to be called by a process before ↵danielk19772009-02-17
| | | | | sqlite3_initialize() is. Prior to this commit such a call could segfault. (CVS 6296) FossilOrigin-Name: 79431c58d964d6057c7f42f7c1df74f3df4493eb
* When not compiling for an EBCDIC system, use built-in alternatives to the tolowedanielk19772009-01-20
| | | | | r(), toupper() and other ctype.h library functions. Ticket #3597. (CVS 6196) FossilOrigin-Name: 1041abd6784d283bebf646c54e93599522f7889d
* Fix a compile error in an assert() and a warning with MSVC builds. (CVS 6032)shane2008-12-16
| | | FossilOrigin-Name: 8b8f6a6ab597e06e60557ab56c6ee7f8522ed570
* Make sure the memory returned from sqlite3ScratchMalloc() is 8-byte aligned.drh2008-12-16
| | | | | Ticket #3542. (CVS 6031) FossilOrigin-Name: 13b56b7ff97c3abc116dae934f6d1330bbb7762d
* Additional work at eliminating silly compiler warnings. (CVS 6010)drh2008-12-10
| | | FossilOrigin-Name: ea01d43788a75e39c7f03c22681d1a338d52cf0e
* Never use strlen(). Use our own internal sqlite3Strlen30() which isdrh2008-12-10
| | | | | | guaranteed to never overflow an integer. Additional explicit casts to avoid nuisance warning messages. (CVS 6007) FossilOrigin-Name: c872d554930ecf221ac2be5f886d5d67bb35288c
* Make use of sqlite3DbMallocSize to maximize the size of growable buffersdrh2008-12-05
| | | | | | after each reallocation. Added new comments and testcase() macros to where.c. (CVS 5981) FossilOrigin-Name: 46f2d08959423e130a5b346138311649d92f0fde
* Changes to avoid "unused parameter" compiler warnings. (CVS 5921)danielk19772008-11-19
| | | FossilOrigin-Name: 88134322c36b41304aaeef99c39b4ef5b495ca3b
* Reduce the number of "missing initializer" warnings. (CVS 5915)danielk19772008-11-18
| | | FossilOrigin-Name: d68e2795e72f1bfc0bf3b8e75cdec2e0b3d5bfcb
* Modifications to avoid unsigned/signed comparisons in various files. (CVS 5914)danielk19772008-11-17
| | | FossilOrigin-Name: 8009220c36635dd9b6efea7dc13281ca9625c40a
* Added SQLITE_OMIT_DEPRECATED compile time option to leave out deprecated ↵shane2008-10-12
| | | | | functions. Updated test scripts to skip tests of deprecated functions if they are compiled out. (CVS 5808) FossilOrigin-Name: ba3711acee6f4659bbf133a23d8f9f37e14d0f38
* Fix to sqlite3DbMallocRaw() when SQLITE_OMIT_LOOKASIDE is defined so thatdrh2008-10-11
| | | | | | once it fails it continues to fail. Add a comment explaining why this is important. (CVS 5804) FossilOrigin-Name: 63dd8be70d333c56171dfd254406abb1af685b0f
* Added an assert() to detect lookaside memory leaks. Also added thedrh2008-10-11
| | | | | | SQLITE_OMIT_LOOKASIDE compile-time option which is useful in trying to track down lookaside memory leaks. (CVS 5800) FossilOrigin-Name: 0c4c66071a46cecc5f87afb8f8f01ae2c90ee9b3
* Always transform error code SQLITE_IOERR_NOMEM to SQLITE_NOMEM before ↵danielk19772008-09-23
| | | | | returning. This was already happening in most places. (CVS 5738) FossilOrigin-Name: 046ef07261d520c9399bd8cdfdfd5281956b7a27
* Modified core to not call deprecated functions sqlite3_memory_alarm() and ↵shane2008-09-04
| | | | | 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) FossilOrigin-Name: 821c387d159fd86cedb56c1130f0416bf5c65e6c
* Explicitly initialize at least the first field of every struct. This is to ↵danielk19772008-09-02
| | | | | work around compilers that don't like the syntax "struct XXX { ... } yyy = {};". (CVS 5666) FossilOrigin-Name: 88bfdc87471e65ac5a262a794b8cdf3e563eb327
* Change some more global variables to work with OMIT_WSD. (CVS 5660)danielk19772008-09-02
| | | FossilOrigin-Name: 46acaf58e11ebe69e4fb5f171d3ee29f056d8e68
* Begin adding support for the SQLITE_OMIT_WSD macro. Some (many) WSD ↵danielk19772008-09-01
| | | | | variables still need wrappers added to them. (CVS 5652) FossilOrigin-Name: 573d92abb9adb1c321ebc2fcadcf14374213b093
* Move a call to sqlite3_mutex_leave() to protect calls to sqlite3StatusAdd() ↵danielk19772008-08-29
| | | | | related to scratch (SQLITE_CONFIG_SCRATCH) memory. (CVS 5641) FossilOrigin-Name: 4e011ddf9e483e3f7c7427205e50f7c3e5616790
* Fix the functionality associated with sqlite3_release_memory() and ↵danielk19772008-08-21
| | | | | sqlite3_soft_heap_limit(). It is automatically disabled if the SQLITE_CONFIG_PAGECACHE option is used. (CVS 5576) FossilOrigin-Name: d025866b09352b32a6d35b97144eaad2fafb7165
* Add the pcache module from the experimental branch. Also change things so ↵danielk19772008-08-20
| | | | | 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) FossilOrigin-Name: cb494e10d71852024647aaa254203579ad438ea9
* Add SQLITE_STATUS_PAGECACHE_SIZE and SQLITE_STATUS_SCRATCH_SIZE. (CVS 5537)drh2008-08-05
| | | FossilOrigin-Name: c4e9b824062ba82a8db01cd82e3e681de1940208
* Test cases for sqlite3_db_config() and sqlite3_db_status(). (CVS 5518)drh2008-08-01
| | | FossilOrigin-Name: 6a6b94302acdfe6404b04bff1cc8d16c1ef69df9
* Change the definition of SQLITE_CONFIG_PAGECACHE anddrh2008-07-31
| | | | | | SQLITE_CONFIG_SCRATCH to omit the magic "+4" in the buffer size calculation. (CVS 5512) FossilOrigin-Name: e7ed0fe640a39053009eac52a7f055b121750e57
* Enhancements to the pagecache malloc test configuration. Changes to thedrh2008-07-29
| | | | | speed test scripts to use the new test enhancements. (CVS 5494) FossilOrigin-Name: 0ce39c21f32958ae53c00dc8bbf8cdd453f2d90e
* Implement the "lookaside" memory allocation cache. Use of this cache makesdrh2008-07-28
| | | | | | the speed1.test script run about 15% faster. Added new interfaces to control the cache. (CVS 5488) FossilOrigin-Name: e48f9697e9fea339e150ddc32940760027dd07d9
* Use the actual size of memory allocations to update the memory statusdrh2008-07-18
| | | | | | counters. Fix the roundup() function of mem3 to be much closer to the actual allocation size. Ticket #3226. (CVS 5440) FossilOrigin-Name: 5c22132eb171058f30ec5b7562b8164611236748
* Fix a bug introduced by check-in (5406). Ticket #3216. (CVS 5407)drh2008-07-14
| | | FossilOrigin-Name: 518a24aa3e042782fbf2e805cf080b61e58a8150