summaryrefslogtreecommitdiff
path: root/src/malloc.c
AgeCommit message (Expand)AuthorLines
2026-01-14Guard against oversized index entries in databases larger than 2GiB.drh-23/+1
2024-02-22Fix debugging code so that it compiles on MSVC.drh-4/+4
2024-02-01Add the test_oom_breakpoint() routine on debug builds, to serve as adrh-0/+20
2023-10-11Simplification to sqlite3ApiExit(). Generates identical machine code, butdrh-1/+1
2022-12-03Doc typo fix for SQLITE_MAX_ALLOCATION_SIZE in malloc.c. No code changes.stephan-1/+1
2022-11-22Convert an ALWAYS() in sqlite3DbSpanDup() into an assert(), for a performancedrh-1/+6
2022-09-27Provide the SQLITE_MAX_ALLOCATION_SIZE compile-time option for limiting thedrh-6/+22
2022-08-22Performance enhancement for sqlite3DbFree().drh-18/+20
2022-08-22Add the new internal interface sqlite3DbNNFreeNN(db,ptr) where both thedrh-0/+35
2022-07-10When an OOM occurs and sets the Parse.nErr value, also set the Parse.nErrdrh-0/+5
2022-04-12Modify utility function sqlite3SetString() so that it may be used safely on P...dan-1/+2
2022-01-24Make sure the sqlite3OomFault() routine sets an error in the Parse objectdrh-1/+10
2021-09-24Add lots of new "const" on internal function parameters. There is opportunitydrh-6/+6
2021-05-21Fix a problem with SQLITE_MAX_MEMORY in malloc.c.dan-1/+0
2020-11-18Improvements to the mechanism that attempts to report SQLITE_CORRUPT ifdrh-3/+0
2020-11-18On unix, for certain error codes of read()/pread() returndrh-7/+13
2020-10-20Fix the sqlite3_hard_heap_limit() so that it works with sqlite3_realloc64()drh-1/+6
2020-07-16Small performance improvement and size reduction in sqlite3DbStrNDup().drh-4/+2
2020-05-17Use the sqlite3Realloc() interface internally, rather than the publicdrh-1/+1
2020-05-08Do not retry on a failed realloc() unless SQLITE_ENABLE_MEMORY_MANAGEMENTdrh-0/+2
2020-04-28Use AtomicStore() when setting the mem0.nearlyFull boolean to avoiddrh-3/+3
2020-04-28Use an AtomicLoad() macro in sqlite3HeapNearlyFull().drh-1/+1
2020-03-30Use __atomic_load_n() and __atomic_store_n() for a few more things where they...dan-2/+2
2019-12-31Refactor names. Use "small" instead of "mini" to describe the smallerdrh-17/+17
2019-12-13Cleanup and performance enhancements for mini-lookaside.drh-21/+42
2019-12-12Reduce the number of call sites to dbMallocRawFinish in the case where n > lo...numist-3/+4
2019-12-12Fix an issue where malloc could be used to fulfill a small allocation when a ...numist-2/+5
2019-12-12Change the size of a mini-lookaside allocation to a macro (MINI_SZ) ratherdrh-3/+3
2019-12-12More efficient implementation of a lookaside allocator that supports mini (in...numist-3/+33
2019-11-14Fix a bug in the hard_heap_limit pragma so that it returns the new value ofdrh-8/+8
2019-11-14Merge recent enhancements from trunk.drh-22/+20
2019-10-05Performance optimization to the lookaside-memory disabling mechanism.drh-22/+20
2019-04-25Add the sqlite3_hard_heap_limit64() interface and the correspondingdrh-2/+51
2019-02-08Give the sqlite3 object a pointer to the current Parse so that if an OOMdrh-0/+3
2018-01-10Tag an unreachable branch using ALWAYS().drh-1/+1
2017-12-27Add and use the internal sqlite3DbSpanDup() interface.drh-0/+13
2017-08-29Faster memory allocation from lookaside by not trying to keep track of thedrh-8/+7
2017-08-28Remove the rarely-used scratch memory allocator. This makes the code smaller,drh-140/+1
2017-04-05Split off sqlite3DbFreeNN() from sqlite3DbFree() and use it in cases wheredrh-3/+8
2017-03-10Fix an error in the SQLITE_MAX_MEMORY implementation resulting from a baddrh-1/+2
2017-03-10Add the -DSQLITE_MAX_MEMORY=N compile-time option. The default is no limit.drh-0/+6
2017-03-10Add the SQLITE_MAX_MEMORY compile-time option that provides a hard upper bounddrh-3/+9
2017-02-13Change all legacy instances of "#if SQLITE_DEBUG" to "#ifdef SQLITE_DEBUG" fordrh-2/+2
2017-02-08Typo fixes in comment. No changes to code.mistachkin-3/+3
2017-02-08Always invoke the xRoundup() method of the memory allocator before callingdrh-4/+12
2017-01-13Fix the build for SQLITE_ENABLE_MEMORY_MANAGEMENT.drh-2/+3
2017-01-10Avoid unnecessary calls to the xRoundup() method of the memory allocator whendrh-7/+5
2016-12-27Avoid a potential (harmless) signed integer overflow in memory usagedrh-1/+1
2016-10-17Small size reduction and performance increase in the string duplicator.drh-3/+2
2016-02-13Enhance ability to debug out-of-memory errors.mistachkin-1/+1