Thanks to visit codestin.com
Credit goes to chromium.googlesource.com
Sign in
chromium
/
external
/
github.com
/
sqlite
/
sqlite
/
HEAD
/
src
/
malloc.c
0b8c312
Fix debugging code so that it compiles on MSVC.
by drh
· 1 year, 5 months ago
d87299c
Add the test_oom_breakpoint() routine on debug builds, to serve as a
by drh
· 1 year, 6 months ago
58c7b77
Simplification to sqlite3ApiExit(). Generates identical machine code, but
by drh
· 1 year, 9 months ago
54ac04c
Doc typo fix for SQLITE_MAX_ALLOCATION_SIZE in malloc.c. No code changes.
by stephan
· 2 years, 8 months ago
c59b7a8
Convert an ALWAYS() in sqlite3DbSpanDup() into an assert(), for a performance
by drh
· 2 years, 8 months ago
5d48e0c
Provide the SQLITE_MAX_ALLOCATION_SIZE compile-time option for limiting the
by drh
· 2 years, 10 months ago
376860b
Performance enhancement for sqlite3DbFree().
by drh
· 2 years, 11 months ago
41ce47c
Add the new internal interface sqlite3DbNNFreeNN(db,ptr) where both the
by drh
· 2 years, 11 months ago
25bb72a
When an OOM occurs and sets the Parse.nErr value, also set the Parse.nErr
by drh
· 3 years ago
f7413d9
Modify utility function sqlite3SetString() so that it may be used safely on Parse.zErrMsg. Fuzzer test case "crash-1604e5d76c92574e21e437049dab9b672e06b767.txt".
by dan
· 3 years, 3 months ago
3cdb139
Make sure the sqlite3OomFault() routine sets an error in the Parse object
by drh
· 3 years, 6 months ago
b6dad52
Add lots of new "const" on internal function parameters. There is opportunity
by drh
· 3 years, 10 months ago
acef1ab
Fix a problem with SQLITE_MAX_MEMORY in malloc.c.
by dan
· 4 years, 2 months ago
f56a4bf
Improvements to the mechanism that attempts to report SQLITE_CORRUPT if
by drh
· 4 years, 8 months ago
detect-corrupt-fs
5a07d10
On unix, for certain error codes of read()/pread() return
by drh
· 4 years, 8 months ago
672f07c
Fix the sqlite3_hard_heap_limit() so that it works with sqlite3_realloc64()
by drh
· 4 years, 9 months ago
369e758
Small performance improvement and size reduction in sqlite3DbStrNDup().
by drh
· 5 years ago
d924e7b
Use the sqlite3Realloc() interface internally, rather than the public
by drh
· 5 years ago
acc1752
Do not retry on a failed realloc() unless SQLITE_ENABLE_MEMORY_MANAGEMENT
by drh
· 5 years ago
23bef34
Use AtomicStore() when setting the mem0.nearlyFull boolean to avoid
by drh
· 5 years ago
9f603fc
Use an AtomicLoad() macro in sqlite3HeapNearlyFull().
by drh
· 5 years ago
892edb6
Use __atomic_load_n() and __atomic_store_n() for a few more things where they are available.
by dan
· 5 years ago
cf014f6
Refactor names. Use "small" instead of "mini" to describe the smaller
by drh
· 6 years ago
mini-lookaside-take-2
e606802
Cleanup and performance enhancements for mini-lookaside.
by drh
· 6 years ago
1b47c9c
Reduce the number of call sites to dbMallocRawFinish in the case where n > lookaside.sz
by numist
· 6 years ago
c947d6a
Fix an issue where malloc could be used to fulfill a small allocation when a large lookaside slot could have beeen used instead.
by numist
· 6 years ago
0225d81
Change the size of a mini-lookaside allocation to a macro (MINI_SZ) rather
by drh
· 6 years ago
115d663
More efficient implementation of a lookaside allocator that supports mini (in this case, harcoded to 128B) slots.
by numist
· 6 years ago
31999c5
Fix a bug in the hard_heap_limit pragma so that it returns the new value of
by drh
· 6 years ago
hard-heap-limit
803f06b
Merge recent enhancements from trunk.
by drh
· 6 years ago
31f6962
Performance optimization to the lookaside-memory disabling mechanism.
by drh
· 6 years ago
10c0e71
Add the sqlite3_hard_heap_limit64() interface and the corresponding
by drh
· 6 years ago
1cf1975
Give the sqlite3 object a pointer to the current Parse so that if an OOM
by drh
· 6 years ago
e75d1f5
Tag an unreachable branch using ALWAYS().
by drh
· 8 years ago
9b2e043
Add and use the internal sqlite3DbSpanDup() interface.
by drh
· 8 years ago
52fb8e1
Faster memory allocation from lookaside by not trying to keep track of the
by drh
· 8 years ago
b2a0f75
Remove the rarely-used scratch memory allocator. This makes the code smaller,
by drh
· 8 years ago
dbd6a7d
Split off sqlite3DbFreeNN() from sqlite3DbFree() and use it in cases where
by drh
· 8 years ago
a6bf20b
Fix an error in the SQLITE_MAX_MEMORY implementation resulting from a bad
by drh
· 8 years ago
1e45c7d
Add the -DSQLITE_MAX_MEMORY=N compile-time option. The default is no limit.
by drh
· 8 years ago
e43d6ae
Add the SQLITE_MAX_MEMORY compile-time option that provides a hard upper bound
by drh
· 8 years ago
max-memory-option
d879e3e
Change all legacy instances of "#if SQLITE_DEBUG" to "#ifdef SQLITE_DEBUG" for
by drh
· 8 years ago
40b8436
Typo fixes in comment. No changes to code.
by mistachkin
· 8 years ago
087a29c
Always invoke the xRoundup() method of the memory allocator before calling
by drh
· 8 years ago
be7a0ce
Fix the build for SQLITE_ENABLE_MEMORY_MANAGEMENT.
by drh
· 9 years ago
1d21bac
Avoid unnecessary calls to the xRoundup() method of the memory allocator when
by drh
· 9 years ago
1aa3469
Avoid a potential (harmless) signed integer overflow in memory usage
by drh
· 9 years ago
cee11ad
Small size reduction and performance increase in the string duplicator.
by drh
· 9 years ago
fad3039
Enhance ability to debug out-of-memory errors.
by mistachkin
· 9 years ago
f5818aa
Make sure variable declarations occur at the beginning of blocks, even
by drh
· 9 years ago
575fad6
Add the slightly faster sqlite3DbMallocRawNN(db,n) routine for the majority
by drh
· 9 years ago
oom-handling
b84e574
Further performance improvements that fall out of the mallocFailed changes.
by drh
· 9 years ago
4a642b6
Improvements to the way that OOM errors are processed.
by drh
· 9 years ago
1da26a4
Performance improvement in sqlite3DbMallocRaw().
by drh
· 10 years ago
ac536e6
Move pointer range comparisons into a macro, where they can be dealt with
by drh
· 10 years ago
stdint.h
56d90be
Remove an unreachable branch in malloc.c.
by drh
· 10 years ago
59a0523
Remove a superfluous conditional from the memory allocation initialization.
by drh
· 10 years ago
039ca6a
Performance optimizations to the sqlite3MallocSize() by requiring the
by drh
· 10 years ago
b02392e
Change sqlite3StatusSet() into sqlite3StatusHighwater() so that only the
by drh
· 10 years ago
5fb72e5
No-op the sqlite3_memory_alarm() interface in a different way, that does
by drh
· 10 years ago
4ef299a
The sqlite3_memory_alarm() interface has been deprecated and undocumented
by drh
· 10 years ago
054bbab
Small size reduction and performance increase in sqlite3DbMallocSize().
by drh
· 10 years ago
01c5c00
Preserve the number of requested PAGECACHE pages even if the memory pointer
by drh
· 10 years ago
597d2b6
Change sqlite3ApiExit() so that its first argument is never NULL.
by drh
· 10 years ago
22c17b8
Simplifications to error message processing. Fix a possible problem in error
by drh
· 10 years ago
df5e1a0
Fix the sqlite3_memory_used() and sqlite3_memory_highwater() interfaces so
by drh
· 10 years ago
592f0cb
Avoid leaving the malloc subsystem in a partially initialized state if
by drh
· 10 years ago
af89fe6
Add the sqlite3_status64() interface. Make the new interface and the legacy
by drh
· 10 years ago
d425864
Fix harmless compiler warnings with MSVC when assert() and SQLITE_MEMDEBUG are both enabled.
by mistachkin
· 10 years ago
cbd55b0
Change the definition of SQLITE_CONFIG_SCRATCH so that at most one scratch
by drh
· 11 years ago
d231aa3
Enhance (and fix) the MEMTYPE tags associated with heap memory allocations
by drh
· 11 years ago
8da4741
Update to requirements marks related to changes in the memory allocation
by drh
· 11 years ago
17bcb10
Add the Mem.szMalloc element to the Mem object and use it to keep track of
by drh
· 11 years ago
20f3df0
Fix harmless warnings on 32-bit MSVC builds.
by drh
· 11 years ago
3329a63
Fix compiler warnings and change the nullMem structure initializer into a
by drh
· 11 years ago
da4ca9d
Add new APIs that take 64-bit length parameters:
by drh
· 11 years ago
b50c65d
Faster implementation of the sqlite3ApiExit() routine.
by drh
· 11 years ago
b4586f1
Another memory allocator performance optimization.
by drh
· 11 years ago
3ccd5bf
Changes to sqlite3ScratchMalloc() that make the entire memory allocation
by drh
· 11 years ago
13f40da
Split the sqlite3Error() routine into sqlite3Error() and
by drh
· 11 years ago
b0e7704
Simplify and improve the performance of the sqlite3VdbeMemGrow() routine.
by drh
· 12 years ago
9ccd865
Change the PRAGMA parser to use a binary search for the pragma name.
by drh
· 12 years ago
3608f17
Make sure lookaside memory allocations are unusable after they are freed.
by drh
· 13 years ago
de0f181
Check the return code from sqlite3_initialize() called from within
by drh
· 14 years ago
2e5a422
Fix a bug in memory usage tracking that was introduced by
by drh
· 14 years ago
ca591fe
Remove stray semi-colon that MSVC complained about.
by shaneh
· 14 years ago
8e1bb04
Changes to memory allocator usage tracking to delay the onset of integer
by drh
· 14 years ago
fcd71b6
Suppress many harmless compiler warnings, mostly signed/unsigned comparisons
by drh
· 14 years ago
0b12e7f
Add additional DBSTATUS options for measuring the hit and miss rates against
by drh
· 15 years ago
4b03f21
Warning cleanup from MSVC.
by shaneh
· 15 years ago
6ac78a0
Fix several harmless compiler warnings.
by drh
· 15 years ago
f82ccf6
Added the sqlite3_soft_heap_limit64() interface. Deprecate the older
by drh
· 15 years ago
39f67be
Fix a couple of incorrect evidence marks on malloc().
by drh
· 15 years ago
71a1a0f
Additional evidence marks on the malloc() implementation. Update the
by drh
· 15 years ago
1567acf
Add assert() statements to demonstrate that memory allocations are always
by drh
· 15 years ago
7ff2719
Fix an off-by-one error in the scratch memory allocator.
by drh
· 15 years ago
1ff6e3a
Use sqlite3_mutex_notheld() instead of !sqlite3_mutex_held() inside
by drh
· 15 years ago
b0c6a88
If MEM_STATUS is disabled, avoid holding the STATIC_MEM mutex when calling the user-defined xMalloc method. Holding the mutex causes problems for memsys3 and memsys5.
by dan
· 15 years ago
9f129f4
Add evidence mark comments to source code. Add additional information to the
by drh
· 15 years ago
badc980
Refactor the implementation of the scratch memory allocator. Add the
by drh
· 15 years ago
Next »