Thanks to visit codestin.com
Credit goes to chromium.googlesource.com
Sign in
chromium
/
external
/
github.com
/
sqlite
/
sqlite
/
HEAD
/
src
/
test_malloc.c
b6503f1
Cygwin-centric fixes from Jan Nijtmans.
by stephan
· 5 months ago
43afab2
GCC 13 has become more quite pedantic about the signature of functions matching the
by drh
· 6 months ago
064b681
First attempt at getting the build to work with Tcl 9.0.
by drh
· 12 months ago
9a23d26
Modifications to test code so that the sqlite3MemdebugHastype() assert() statements are enabled for Tcl tests.
by dan
· 5 years ago
b9cd2c4
In the OOM testing logic, add the sqlite3FirstFault() routine as a place to
by drh
· 7 years ago
ffc78a4
Add the SQLITE_DBSTATUS_CACHE_SPILL option to sqlite3_db_status()
by drh
· 7 years ago
dbstatus-cache-spill
b2a0f75
Remove the rarely-used scratch memory allocator. This makes the code smaller,
by drh
· 8 years ago
7617e4a
Make sure the SQLITE_TCLAPI macro is always defined.
by mistachkin
· 9 years ago
52b1dbb
Allow the 'testfixture.exe' target to be compiled with the __stdcall calling convention.
by mistachkin
· 9 years ago
9c10608
Change the name of the SQLITE_DBSTATUS_PROPORTIONAL_CACHE_USED to SQLITE_DBSTATUS_CACHE_USED_SHARED.
by dan
· 9 years ago
dbstatus-prop-cache-used
272989b
Add the SQLITE_DBSTATUS_PROPORTIONAL_CACHE_USED sqlite3_db_status() parameter.
by dan
· 9 years ago
aed11f2
Make sure "0" intended as a NULL pointer is cast to a pointer when used
by drh
· 9 years ago
d797a9b
Changes to avoid obscure, theoretical undefined behavior. This is preventative
by drh
· 10 years ago
a6082f6
The first argument to SQLITE_CONFIG_PAGECACHE, SQLITE_CONFIG_SCRATCH, and
by drh
· 10 years ago
6bacdc2
Fix compiler warnings. Get the new sqlite3_result_zeroblob64() working
by drh
· 10 years ago
03bc525
Modify a few test scripts to avoid leaving the sqlite3Config structure in a non-default state.
by dan
· 10 years ago
8e18922
Fix harmless compiler warnings seen with MSVC 2015.
by mistachkin
· 10 years ago
7bb22ac
Silence some harmless uninitialized local variable warnings.
by mistachkin
· 11 years ago
3bd1791
Add the SQLITE_CONFIG_PMASZ start-time option.
by drh
· 11 years ago
60ec914
Fix typos in comments. No code changes.
by peter.d.reid
· 11 years ago
44ee1dc
Add the sqlite3_memdebug_title_count global variable, used during debugging
by drh
· 11 years ago
028696c
Remove the SQLITE_CONFIG_WORKER_THREADS configuration parameter. The number
by drh
· 11 years ago
578e1ca
Even if compile time option SQLITE_MAX_WORKER_THREADS is set to one or greater, set the default number of worker threads to zero. Distribute data more evenly between threads in sqlite3VdbeSorterWrite() to improve performance when sorting large amounts of data. Add new test file sort2.test.
by dan
· 11 years ago
af8641b
Clarify docs for the SQLITE_CONFIG_WIN32_HEAPSIZE option.
by mistachkin
· 12 years ago
winHeapSize
ac1f104
Add experimental sqlite3_config option to control the native Win32 heap size.
by mistachkin
· 12 years ago
f641889
Fix several harmless compiler warnings. Fix a couple compiler issues with the shell.
by mistachkin
· 12 years ago
648e264
Add the "defer_foreign_keys" pragma and the SQLITE_DBSTATUS_DEFERRED_FKS
by drh
· 12 years ago
e84d8d3
More refinements to Windows OSTRACE usage. Replace all usage of sqlite3TestErrorName() with sqlite3ErrName() and add missing return codes.
by mistachkin
· 12 years ago
a359b5e
Fix an out-of-order function declaration when compiled with MEMDEBUG.
by mistachkin
· 13 years ago
de9a7b8
Add the ability to disable the covering-index-scan optimization at compile-time,
by drh
· 13 years ago
8765b46
Make header comments for some Tcl test commands more consistent. No changes to code.
by mistachkin
· 13 years ago
9ad3ee4
Add SQLITE_DBSTATUS_CACHE_WRITE. Used to query a database connection for the cumulative number of database pages written.
by drh
· 13 years ago
caffb1a
Fix compiler warnings in the TCL test harness.
by drh
· 13 years ago
58ca31c
Add the SQLITE_DB_STATUS_CACHE_HIT and MISS options. For querying the number of cache hits and misses on a per-connection basis.
by dan
· 14 years ago
860e332
Fix harmless compiler warnings in test code. No changes to the core.
by drh
· 14 years ago
cd74b61
Add the start of the "uri-filenames" feature.
by dan
· 14 years ago
2a58e9c
Add test cases for the new lookaside hit and miss status outputs. Add
by drh
· 15 years ago
ec561a3
Change to tcl test infrastructure so that --malloctrace=1 works when sizeof(int)!=sizeof(void*).
by dan
· 15 years ago
eafc43b
Add the SQLITE_STATUS_MALLOC_COUNT option for sqlite3_status().
by drh
· 15 years ago
d46def7
Experimental code to measure memory consumed by database schemas and prepared statements.
by dan
· 15 years ago
c396d4a
Additional test cases to cover branches in pager.c.
by dan
· 15 years ago
63da089
Add the SQLITE_DBSTATUS_CACHE_SIZE verb for sqlite3_db_status(). The
by drh
· 15 years ago
c81c11f
Remove the obsolete "$Id:$" RCS identifier strings from the source code.
by drh
· 16 years ago
8b32282
Change to test code and scripts allowing memsys3 to be tested using a build that has both memsys3 and memsys5 enabled. (CVS 6834)
by danielk1977
· 16 years ago
64aca19
Change "... myfunction() { ... }" to "... myfunction(void) { ... }" in a few pla
by danielk1977
· 16 years ago
b48c1f1
Fix a bug in test_malloc.c whereby running multi-threaded test cases could cause subsequent OOM tests to fail. (CVS 6254)
by danielk1977
· 16 years ago
f2a84e3
Add a HIGHSTRESS parameter to the sqlite3_config_alt_pcache debugging
by drh
· 17 years ago
b232c23
Add an alternative application-defined pcache implementation and add test
by drh
· 17 years ago
2479de3
Removed a few more small parts of memsys6 code, including some config and test code for it; (CVS 5872)
by shane
· 17 years ago
ab7bee8
After running speed1.test and speed1p.test, reset the size of the lookaside buffer. Otherwise, subsequent runs of malloc5.test may report an error. Changes to test code only. (CVS 5824)
by danielk1977
· 17 years ago
1b67f3c
Simplify the symbol hash table to use only a single key class. Other
by drh
· 17 years ago
e50135e
Add SQLITE_STATUS_PAGECACHE_SIZE and SQLITE_STATUS_SCRATCH_SIZE. (CVS 5537)
by drh
· 17 years ago
e9d1c72
Separate verbs of sqlite3_config() and sqlite3_db_config() into their
by drh
· 17 years ago
6480aad
Test cases for sqlite3_db_config() and sqlite3_db_status(). (CVS 5518)
by drh
· 17 years ago
0a60a38
Change the definition of SQLITE_CONFIG_PAGECACHE and
by drh
· 17 years ago
5f4bcf1
Enhancements to the pagecache malloc test configuration. Changes to the
by drh
· 17 years ago
633e6d5
Implement the "lookaside" memory allocation cache. Use of this cache makes
by drh
· 17 years ago
ec424a5
Add the capability to track the maximum depth of the LALR(1) parser stack
by drh
· 17 years ago
31fab4f
Updates to mem6.c allocator. (CVS 5473)
by danielk1977
· 17 years ago
2d34081
Add mem6.c, a new allocator. More to come. (CVS 5467)
by danielk1977
· 17 years ago
7830cd4
Activate testing of mem3 and mem5. Fix problems found. Tickets #3223
by drh
· 17 years ago
34004ce
Additional test coverage for the btree module. Remove the failsafe() macro
by drh
· 17 years ago
8a42cbd
Enhancements to the testing logic for malloc and mutex. Only permit one
by drh
· 17 years ago
af005fb
Test coverage improvements on printf. (CVS 5385)
by drh
· 17 years ago
22c2403
Begin adding the failsafe() macro. (CVS 5383)
by drh
· 17 years ago
0d84e5b
Fix mem3.c (broken by (5320)). (CVS 5321)
by danielk1977
· 17 years ago
5099be5
Change mem5.c so that the minimum allocation size is runtime configurable. (CVS 5320)
by danielk1977
· 17 years ago
c66c0e1
Fix the allocator in mem5.c so that it can be enabled at run time using the sqlite3_config() function. (CVS 5304)
by danielk1977
· 17 years ago
32155ef
Fix up some details to do with the mem3.c (memsys3) allocator. If the library is compiled with SQLITE_ENABLE_MEMSYS3, the memsys3 allocator can be selected at runtime. (CVS 5303)
by danielk1977
· 17 years ago
57e5ea9
Modify the memory allocation system in mem3.c so to fit in with the new sqlite3_mem_methods scheme. At this point it only "mostly" works. (CVS 5297)
by danielk1977
· 17 years ago
2d1d86f
Add a mode to the sqlite3_test_control() interface to register hooks called at the beginning and end of "benign malloc failure" blocks. This allows malloc() failure testing to be done using public APIs only. (CVS 5254)
by danielk1977
· 17 years ago
ef05f2d
Move (almost all) malloc failure test logic from fault.c to test_malloc.c. (CVS 5253)
by danielk1977
· 17 years ago
d09414c
Move the malloc() failure simulation out of malloc.c and into a separate sqlite3_mem_methods interface. Still some related changes to come. (CVS 5250)
by danielk1977
· 17 years ago
f714199
Add some test logic to the new memory allocation subsystem. (Lots more needed.)
by drh
· 17 years ago
9ac3fe9
Added support for scratch-memory lookaside allocations. Largely untested.
by drh
· 17 years ago
afdd23a
Unused functions in testfixture.exe with certain defines. (CVS 5172)
by shane
· 17 years ago
5f09613
Changes to the Mem structure to reduce the frequency of freeing and reallocating the dynamic buffer. (CVS 4928)
by danielk1977
· 17 years ago
b940492
Patch to the new memory tracing logic that allows it to build even if
by drh
· 17 years ago
dbdc4d4
If memory is leaked when running a test script with the --malloctrace 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)
by danielk1977
· 17 years ago
cd3e8f7
Use a vdbe memory cell to allocate the space required for vdbe cursors. (CVS 4912)
by danielk1977
· 17 years ago
6f332c1
Add some more logging to the malloc system used when SQLITE_MEMDEBUG is defined. (CVS 4901)
by danielk1977
· 17 years ago
77db4c0
Minor test coverage enhancements. (CVS 4877)
by drh
· 17 years ago
5efaf07
Add the ability to simulate out-of-memory errors when using the default
by drh
· 17 years ago
49e4fd7
Change non-exported memory interfaces to following the naming conventions. (CVS 4797)
by drh
· 17 years ago
eee4c8c
Add the memory fault simulator to mem5.c. Enable soft heap limit on mem5.c.
by drh
· 17 years ago
2d7636e
The power-of-two first-fit memory allocator is now working. (CVS 4793)
by drh
· 17 years ago
a7a8e14
Where possible, avoid freeing buffers allocated for vdbe memory cells in case they can be reused. (CVS 4783)
by danielk1977
· 17 years ago
ed13d98
Add the sqlite3_test_control() API. Use it to control the fault injector. (CVS 4758)
by drh
· 17 years ago
643167f
Add the fault injector module in fault.c. Use it as a basis for memory
by drh
· 18 years ago
9c7a60d
Added an experimental malloc-free memory allocation subsystem, intended
by drh
· 18 years ago
369ff42
Fixes to test code so that the test suite passes without SQLITE_MEMDEBUG defined. (CVS 4370)
by danielk1977
· 18 years ago
cd03724
Check in extra fixes for malloc4.test. (CVS 4341)
by danielk1977
· 18 years ago
a1644fd
Modifications to the malloc failure tests to test transient and persistent failures. (CVS 4321)
by danielk1977
· 18 years ago
153c62c
The win32 driver compiles but does not yet work well. Many bugs
by drh
· 18 years ago
4a50aac
Improvements to memory leak detection. The --backtrace=NNN option is now
by drh
· 18 years ago
ed138fb
All of the malloc test cases run. Still seeing failures in malloc4.test. (CVS 4272)
by drh
· 18 years ago
0e6f154
Enhancements and smoke testing of the new memory allocation subsystem.
by drh
· 18 years ago
2f999a6
Test infrastructure for the new memory subsystem. (CVS 4229)
by drh
· 18 years ago