aboutsummaryrefslogtreecommitdiff
path: root/src/mem2.c
Commit message (Collapse)AuthorAge
* Fix another harmless compiler warning for MSVC.mistachkin2021-10-12
| | | FossilOrigin-Name: b54c0db0fd686b85269cf4c301c9b483c5272269d0cd69a1c7141a91101192f0
* Fix harmless compiler warnings in the debug build for MSVC.mistachkin2021-10-12
| | | FossilOrigin-Name: 1ceb73f316ddc736aebd1e82ef3a0d9c173d025ac5b7fcfbde0a65a0eeb60a4b
* Modifications to test code so that the sqlite3MemdebugHastype() assert() ↵dan2020-07-16
| | | | | statements are enabled for Tcl tests. FossilOrigin-Name: e3c423cb1407c06a3806ae6304e4713c37cd446f4cc399731884e3d009938e57
* Enhance (and fix) the MEMTYPE tags associated with heap memory allocationsdrh2014-10-07
| | | | | when SQLITE_MEMDEBUG is used. FossilOrigin-Name: ca5b789e33c4e5ce366d8f5372d086442f84e230
* Fix harmless MSVC compiler warning with MEMDEBUG defined.mistachkin2013-08-31
| | | FossilOrigin-Name: b48cfd2dfca70091a52deeeee16619237e1c270b
* Fix several harmless compiler warnings. Fix a couple compiler issues with ↵mistachkin2013-08-28
| | | | | the shell. FossilOrigin-Name: 8917e9f9a0802cbfb6f33e2ab1c2f98e4df5babd
* Add evidence mark comments to source code. Add additional information to thedrh2010-08-31
| | | | | | documentation of sqlite3_release_memory(). Fix a minor inefficiency in mem1.c that was discovered while writing requirements tests. FossilOrigin-Name: 53b0c03fd33d2d8141fd386de5493fec64456042
* Disable the MEMSYS2 auxiliary routines if MEMSYS2 is changed to an alternativedrh2010-08-20
| | | | | memory allocator using SQLITE_CONFIG_MALLOC. FossilOrigin-Name: 541dd3b870f123a5fddf0b710474693566a1d659
* 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
* 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
* Correct an assert() in mem2.c (test code only).dan2010-03-08
| | | FossilOrigin-Name: 1a88e31b03e090732243a70bec082b32ecf77c43
* In the debugging memory allocator, initialize new memory allocations todrh2010-01-05
| | | | | | pseudo-randomness in an effort to find problems with memcmp() of structures that have uninitialized pad bytes. FossilOrigin-Name: 6462817b2f817a6105449b0ea3e1e336e42571d1
* Remove the obsolete "$Id:$" RCS identifier strings from the source code.drh2009-11-10
| | | FossilOrigin-Name: f6c045f649036958078cb15cd9d5453680c82b0c
* 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
* Changes to reduce the heap space consumed by triggers, views and tables in ↵danielk19772009-02-19
| | | | | the in-memory representation of the schema. Also to reduce the space used by prepared statements slightly. (CVS 6305) FossilOrigin-Name: d9f6ffbc5ea090ba0daac571fc9a6c68b9c864e4
* Improved overrun detection in mem2.c (SQLITE_MEMDEBUG). Previously was only ↵shane2009-02-05
| | | | | checking up to 3 extra bytes allocated due to rounding. (CVS 6261) FossilOrigin-Name: a6fe3d6b02734b23fe067a373c0232024a782a6c
* 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
* Fix harmless compiler warnings. Improved comments in the query optimizer. ↵drh2008-12-05
| | | | | (CVS 5982) FossilOrigin-Name: adedd697b475dadaa2eeae0d0413603195c955cf
* Remove the vestigial mem4 and mem6 memory allocators. Add thedrh2008-10-28
| | | | | | SQLITE_ZERO_MALLOC compile-time option and the mem0.c module to handle memory allocation for that case. (CVS 5848) FossilOrigin-Name: 4651f590f0b8bf13938b2b15d5082136e763af8d
* 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
* Fix further warnings/compilation errors in test code. (CVS 5558)danielk19772008-08-12
| | | FossilOrigin-Name: 42247b917ae5a5c0d81b934200810755d0040282
* Updates to mem6.c allocator. (CVS 5473)danielk19772008-07-25
| | | FossilOrigin-Name: 43a4cae2acea33d1a17c0037516e9c27fb7e8e91
* Reduce the size of the parser allocation. Add additional instrumentationdrh2008-07-24
| | | | | to mem2. speed1*.test uses scratch malloc. (CVS 5472) FossilOrigin-Name: 599a9dea8fc97d0e7f09e67c9954de8cc1b8748e
* Add mem6.c, a new allocator. More to come. (CVS 5467)danielk19772008-07-24
| | | FossilOrigin-Name: 192bc192185a7b475ef9331e2a4a0dc68083ec03
* Enhancements to the testing logic for malloc and mutex. Only permit onedrh2008-07-10
| | | | | | of MEMSYS3/5 to be compiled-in at a time. Omit the SQLITE_CONFIG_MEMSYS3/5 configuration options. (CVS 5389) FossilOrigin-Name: ed8b2525006ae7f8cacd01b291760513fdbdff57
* Bug fixes: Plug a memory leak introduced by the previous check-in. Getdrh2008-06-19
| | | | | the amalgamation to the point where it will compile. (CVS 5241) FossilOrigin-Name: 005f8eaef5ae05cef5c76f3afe299eaa2cf8af2f
* Implement the 'CONFIG_SINGLETHREAD' and 'CONFIG_MULTITHREAD' configuration ↵danielk19772008-06-18
| | | | | modes. (CVS 5234) FossilOrigin-Name: 5059644c4bc5f6679afd939e0bc26080f42a9918
* Change the mutex interface to be pluggable. This is an incremental checkin, ↵danielk19772008-06-17
| | | | | there are still changes to come. (CVS 5227) FossilOrigin-Name: 597283637bcdc2398bf249b2bbc6ded47ad2de22
* Add internal interfaces: PageMalloc/PageFree and ScratchMalloc/ScratchFree. ↵drh2008-06-17
| | | | | (CVS 5226) FossilOrigin-Name: 3e797d0ffe1af6f7512b3fb7b387418ac05671e0
* Continuing work on the new memory allocation subsystem.drh2008-06-15
| | | | | | Added routines for temporary memory allocation. Right the btree balance mechanism to only do one temporary allocation at a time. (CVS 5220) FossilOrigin-Name: 65fe7b62cfe7d11cd667681a64c96fe7b2fe5685
* Continuing progress on the new memory allocation subsystem. Added thedrh2008-06-14
| | | | | | sqlite3_mem_methods structure for defining new memory allocators at run-time. (CVS 5219) FossilOrigin-Name: f00305f4cd2f487f660f34a21c1c24a0b37c7275
* Progress toward implementation of sqlite3_config() and a rework of thedrh2008-06-13
| | | | | mutex and memory allocation subsystems. This is an incremental check-in. (CVS 5218) FossilOrigin-Name: a03c5af115889f477e17187a198a7d2d40bc76bf
* Make sure all memory allocations are 8-byte aligned. Ticket #3040.drh2008-04-10
| | | | | | | 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) FossilOrigin-Name: d11e8e307af906db75ae7aede790464fabd06422
* Change the allocator in mem2.c (used when SQLITE_MEMDEBUG is defined) so ↵danielk19772008-04-03
| | | | | 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) FossilOrigin-Name: fd97f8762cb1e4653c932402940f74d7c0ebf71f
* If memory is leaked when running a test script with the --malloctrace ↵danielk19772008-03-28
| | | | | 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) FossilOrigin-Name: f1b97ed93183378ff56b4fe7ae8ea269c24092fc
* Add some more logging to the malloc system used when SQLITE_MEMDEBUG is ↵danielk19772008-03-21
| | | | | defined. (CVS 4901) FossilOrigin-Name: 79738f582fbac87f2d335e0c6b7f53e3054b41ba
* Change non-exported memory interfaces to following the naming conventions. ↵drh2008-02-19
| | | | | (CVS 4797) FossilOrigin-Name: 94774b41429c8bfa3582e30c09f414b9e5669575
* Add the experimental mem5.c memory allocator. Allocate the content partdrh2008-02-14
| | | | | of cache pages separately from the header. (See check-ins (4495) and (4409)). (CVS 4789) FossilOrigin-Name: 669ece8c82bfa69add852589dd1211751cb26fb2
* Where possible, avoid freeing buffers allocated for vdbe memory cells in ↵danielk19772008-02-13
| | | | | case they can be reused. (CVS 4783) FossilOrigin-Name: 990237e27e417aff3dbf05784b716c21f3761a3a
* Add the fault injector module in fault.c. Use it as a basis for memorydrh2008-01-22
| | | | | allocation failure testing. (CVS 4742) FossilOrigin-Name: 1a335e180183b414fcc3510ce28b98b21cd134a6
* Add the optional (and experimental) mmap() memory allocator in thedrh2007-11-29
| | | | | mem4.c module. (CVS 4581) FossilOrigin-Name: cfd683ac80fd043343e0f0af90805058daa3818d
* Drop support for the SQLITE_OMIT_MEMORY_ALLOCATION compile-time option. (CVS ↵drh2007-11-05
| | | | | 4529) FossilOrigin-Name: b57c89fed0b74c2e8fb68ccfdf5e5e7d4b2603a1
* Added an experimental malloc-free memory allocation subsystem, intendeddrh2007-10-19
| | | | | | for use on embedded systems. Runs 7% faster than when using system malloc() on Linux. (CVS 4493) FossilOrigin-Name: 8487ca82fade60b9fa63abf74e10f6ebcb48b98e
* Add a malloc size histogram to the debugging malloc implementationdrh2007-10-15
| | | | | in mem2.c. (CVS 4490) FossilOrigin-Name: 3e51696cb878063e4ebfdcc2a61ba94c9bebdfe3
* Add automatic recovery from the pager "error-state". Also add a new error ↵danielk19772007-10-03
| | | | | code - SQLITE_IOERR_NOMEM. (CVS 4454) FossilOrigin-Name: 12eca32a6a3d68d5b20eed03afdffe7599e66014
* Fix a problem handling a malloc() failure in printf.c. Also some other ↵danielk19772007-09-01
| | | | | things to improve test coverage. (CVS 4361) FossilOrigin-Name: 595bfe72f053bc6ecb58bb9044a4cdc53d30b404
* Check in extra fixes for malloc4.test. (CVS 4341)danielk19772007-08-30
| | | FossilOrigin-Name: 49ce3a838194f0316c883dbe1596d13c0c0fad1b
* Modifications to the malloc failure tests to test transient and persistent ↵danielk19772007-08-29
| | | | | failures. (CVS 4321) FossilOrigin-Name: e38ef81b85feb5bff2ad8448f3438ff0ab36571e
* Bug fix in the memory leak trace output. (CVS 4283)drh2007-08-24
| | | FossilOrigin-Name: a1b495c28a092c7eb79ffeeb6a217749acb4c12c