aboutsummaryrefslogtreecommitdiff
path: root/src/malloc.c
Commit message (Collapse)AuthorAge
...
* Performance improvement in sqlite3DbMallocRaw().drh2016-01-20
| | | FossilOrigin-Name: ff8eadbed5004ab03438f737492387dee6b9750a
* Move pointer range comparisons into a macro, where they can be dealt withdrh2015-12-10
| | | | | in a more portable way. FossilOrigin-Name: ad3124c834b080aaaf24934d6f08b3601ac3ae53
* Remove an unreachable branch in malloc.c.drh2015-10-26
| | | FossilOrigin-Name: a36b7fe92372a13ff0b6e08f1704496045c6f62a
* Remove a superfluous conditional from the memory allocation initialization.drh2015-10-15
| | | FossilOrigin-Name: 9ccf8f8d35723f2a9b59010b6d5f37a14164a188
* Performance optimizations to the sqlite3MallocSize() by requiring thedrh2015-10-15
| | | | | argument to always be non-NULL. FossilOrigin-Name: cb65989b0710c65e4df69063b346344fdb1d12c7
* Change sqlite3StatusSet() into sqlite3StatusHighwater() so that only thedrh2015-10-15
| | | | | | highwater mark is recorded. This gives a small size reduction and performance improvement. FossilOrigin-Name: 6422d223dd10018703c6b083d29a3c35c837fc97
* No-op the sqlite3_memory_alarm() interface in a different way, that doesdrh2015-09-10
| | | | | | not break legacy memory behavior. This is a re-do of check-in [5d3f5df4da9f40d5]. FossilOrigin-Name: 8250e2a487ee12c9a2dea5603ab60aed51e5dc7b
* The sqlite3_memory_alarm() interface has been deprecated and undocumenteddrh2015-09-02
| | | | | for almost 8 years (since version 3.5.3). Change it into a no-op. FossilOrigin-Name: 5d3f5df4da9f40d5897b5c23b2ea9333fc18ac2c
* Small size reduction and performance increase in sqlite3DbMallocSize().drh2015-09-01
| | | FossilOrigin-Name: 8a80967f849eed002a701235ed7fb406099d566e
* Preserve the number of requested PAGECACHE pages even if the memory pointerdrh2015-07-04
| | | | | | or size is zero. Enhance the pcache1.c header comment to explain the memory layout of a page cache line. FossilOrigin-Name: dacb2a615ce1c0573baf4518000454038745cf2a
* Change sqlite3ApiExit() so that its first argument is never NULL.drh2015-06-30
| | | FossilOrigin-Name: 791b706ec6c3e80885666e48e01524f0e9a7557e
* Simplifications to error message processing. Fix a possible problem in errordrh2015-05-15
| | | | | message formatting when vacuuming a database with a corrupt schema. FossilOrigin-Name: 56ef98a04765c34c1c2f3ed7a6f03a732f3b886e
* Fix the sqlite3_memory_used() and sqlite3_memory_highwater() interfaces sodrh2015-05-10
| | | | | that they really do provide a 64-bit answer. FossilOrigin-Name: 8a0d5d5e9a4515603c47e9354af47550155a6f2d
* Avoid leaving the malloc subsystem in a partially initialized state ifdrh2015-03-26
| | | | | the low-level initialization callback fails. FossilOrigin-Name: 3e872011ff5e27738c282f46d2b5803d94fe4b76
* Add the sqlite3_status64() interface. Make the new interface and the legacydrh2015-03-23
| | | | | | sqlite3_status() both atomic and threadsafe. Check threadsafety using assert()s. FossilOrigin-Name: 1ce8e8fa4b866aafa12b1da0eb4d02321af9293e
* Fix harmless compiler warnings with MSVC when assert() and SQLITE_MEMDEBUG ↵mistachkin2015-03-21
| | | | | are both enabled. FossilOrigin-Name: 9513dbd4860c8dd391f831982d09aff227d16f5c
* Change the definition of SQLITE_CONFIG_SCRATCH so that at most one scratchdrh2014-11-04
| | | | | | buffer is used per thread. Use the generic heap memory allocator for the WalIterator object when running a checkpoint. FossilOrigin-Name: 391c9b85abcb5ba300fb2e116384639310c69ed2
* Enhance (and fix) the MEMTYPE tags associated with heap memory allocationsdrh2014-10-07
| | | | | when SQLITE_MEMDEBUG is used. FossilOrigin-Name: ca5b789e33c4e5ce366d8f5372d086442f84e230
* Update to requirements marks related to changes in the memory allocationdrh2014-10-03
| | | | | | interface and enhancement of the documentation regarding DEFAULT clauses in CREATE TABLE. FossilOrigin-Name: 440705b98a3429b830ea85e71cc1e414bc6d8058
* Add the Mem.szMalloc element to the Mem object and use it to keep track ofdrh2014-09-18
| | | | | the size of the Mem.zMalloc allocation. FossilOrigin-Name: 9c09ac353df6041808cace41880f4729ee73f5e1
* Fix harmless warnings on 32-bit MSVC builds.drh2014-09-18
| | | FossilOrigin-Name: 5192f964b2a85459553f1cea741b9791606ccc4e
* Fix compiler warnings and change the nullMem structure initializer into adrh2014-09-18
| | | | | format that MSVC can understand. FossilOrigin-Name: 163bfae8583b2d3002a3a43d6bf8a66fefd73acb
* Add new APIs that take 64-bit length parameters:drh2014-09-09
| | | | | | | | | | | | | | | 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. FossilOrigin-Name: 94954850cf2e1ec0b7f590c7f46cdc54c72558ce
* Faster implementation of the sqlite3ApiExit() routine.drh2014-08-23
| | | FossilOrigin-Name: bd41d394d48516eb7d8ddc46abdcb427aa80173e
* Another memory allocator performance optimization.drh2014-08-23
| | | FossilOrigin-Name: 6da6f46d0c43e3b68c21f514ddf8ee663c20f249
* Changes to sqlite3ScratchMalloc() that make the entire memory allocationdrh2014-08-23
| | | | | interface a little faster and about 100 bytes smaller. FossilOrigin-Name: f83daa16f65ef35062412e88c214852a4aeb3da2
* Split the sqlite3Error() routine into sqlite3Error() anddrh2014-08-22
| | | | | sqlite3ErrorWithMsg(), for a slight size reduction and performance increase. FossilOrigin-Name: cf561d1f0bb60b3d638632d20bd686dda4fa4a04
* Simplify and improve the performance of the sqlite3VdbeMemGrow() routine.drh2013-12-10
| | | FossilOrigin-Name: 48ecf18774ba9572d86696c60d87007a619d9f53
* Change the PRAGMA parser to use a binary search for the pragma name.drh2013-09-13
| | | | | | Also: Minor performance enhancement to sqlite3DbFree() and to the token dequoter. FossilOrigin-Name: 870c030b4e1854e6e0d39907fadbd82774c16f56
* Make sure lookaside memory allocations are unusable after they are freed.drh2012-05-21
| | | FossilOrigin-Name: 3869aef6348018f584137f36f6924193a790e52f
* Check the return code from sqlite3_initialize() called from withindrh2011-12-22
| | | | | | sqlite3_soft_heap_limit64() and return an error from sqlite3_soft_heap_limit64() if sqlite3_initialize() fails. FossilOrigin-Name: 676acce274fec692a1eb34d27ee4b1327b4b3334
* Fix a bug in memory usage tracking that was introduced bydrh2011-05-05
| | | | | check-in [4e33a0eaf83922]. FossilOrigin-Name: 8ba456ae0b3d0c0b6f72f98bd0bc28f72dfa4ff5
* Remove stray semi-colon that MSVC complained about.shaneh2011-04-15
| | | FossilOrigin-Name: 7a085271ff85033479c2057c19a45a750168d228
* Changes to memory allocator usage tracking to delay the onset of integerdrh2011-04-15
| | | | | overflow. FossilOrigin-Name: 4e33a0eaf83922926f8d5ee988a20439a09bc795
* Suppress many harmless compiler warnings, mostly signed/unsigned comparisons drh2011-04-05
| | | | | within asserts or unused parameters in extensions. FossilOrigin-Name: 3eeb0ff78d04891b5fd1a3d99a9fb8cfbed77a81
* Add additional DBSTATUS options for measuring the hit and miss rates againstdrh2010-12-20
| | | | | | the lookaside memory pool - information useful in tuning the lookaside size. Currently experimental pending analysis of performance impact. FossilOrigin-Name: 34613f1dc54c638531ca2f5907b71fbe8841233e
* Warning cleanup from MSVC.shaneh2010-10-04
| | | FossilOrigin-Name: cde62657d6f410a3d6899cd7b4000d276fe3c813
* Fix several harmless compiler warnings.drh2010-09-28
| | | FossilOrigin-Name: 7be03ecc04235420e54fed8a88742243278de160
* Added the sqlite3_soft_heap_limit64() interface. Deprecate the olderdrh2010-09-15
| | | | | sqlite3_soft_heap_limit() interface. FossilOrigin-Name: 82268a2c3d75431cd40de6ad09d398729de32a29
* Fix a couple of incorrect evidence marks on malloc().drh2010-09-11
| | | FossilOrigin-Name: f9b5c5cb135f3d0bb2b64b4d3f8d77bbd8d2ae98
* Additional evidence marks on the malloc() implementation. Update the drh2010-09-11
| | | | | | documentation to explain that mallocs are not necessarily 8-byte aligned if the SQLITE_4_BYTE_ALIGNED_MALLOC compile-time option is used. FossilOrigin-Name: 42b4bf9e72501cf228b4086437c7660443933f74
* Add assert() statements to demonstrate that memory allocations are alwaysdrh2010-09-11
| | | | | aligned to an 8-byte boundary (unless SQLITE_4_BYTE_ALIGNED_MALLOC is defined). FossilOrigin-Name: 305cc4e6c1164b1ede0c3177e3c0f9b8644df0f6
* Fix an off-by-one error in the scratch memory allocator.drh2010-09-02
| | | FossilOrigin-Name: 5a9591607a0a5ba4527bf2a90179651053244953
* Use sqlite3_mutex_notheld() instead of !sqlite3_mutex_held() insidedrh2010-09-02
| | | | | | of assert() statements since the former works when mutexing is disabled while the latter does not. FossilOrigin-Name: 2211486b69cf53f5efb1334aff8b403b26596102
* If MEM_STATUS is disabled, avoid holding the STATIC_MEM mutex when calling ↵dan2010-09-02
| | | | | the user-defined xMalloc method. Holding the mutex causes problems for memsys3 and memsys5. FossilOrigin-Name: 4f20f8ba73691c8a1dc33d2fcd1e793dd08f00a8
* 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
* Refactor the implementation of the scratch memory allocator. Add thedrh2010-08-27
| | | | | SQLITE_TESTCTRL_SCRATCHMALLOC interface to facilitate testing. FossilOrigin-Name: a3475ddfbe4526e6e0b334fd1376ee7c31508b80
* Remove unnecessary code from malloc.c. Enhance pcache1.c so that is triesdrh2010-08-27
| | | | | | | 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. FossilOrigin-Name: 51049479a8577e03cc353f71f6e13a10c8323d91
* Fix a bug in the SQLITE_STATUS_MALLOC_COUNT counter. Add an ALWAYS() arounddrh2010-07-26
| | | | | a condition in the SQLITE_DBSTATUS_SCHEMA_USED logic that is always true. FossilOrigin-Name: 6df081adbfa581c477bd2c96bb3f7f44be131a8f
* Add the SQLITE_STATUS_MALLOC_COUNT option for sqlite3_status().drh2010-07-26
| | | FossilOrigin-Name: 8f8e442b3af553753e25c304efa289b626e3a227