/ File History
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History of src/mem1.c

2017-03-21
20:17
New simplified memory initialization for MacOS. file: [c12a4253] check-in: [055b36f1] user: drh branch: trunk, size: 9098
2017-03-18
13:59
Only do the specialized MacOS single-core zone_malloc initialization if compiled with the SQLITE_MIGHT_BE_SINGLE_CORE flag. This avoids a (harmless) warning about OSAtomicCompareAndSwapPtrBarrier() being deprecated. file: [79bf195f] check-in: [4e6a03d9] user: drh branch: trunk, size: 9909
2017-02-08
16:01
Always invoke the xRoundup() method of the memory allocator before calling xMalloc(). file: [fd7cd6fe] check-in: [77b470b0] user: drh branch: trunk, size: 9255
12:18
Round up the size of all memory allocations to a multiple of 8 bytes when using the system memory allocator. file: [d5214ba7] check-in: [c46e06fa] user: drh branch: trunk, size: 9211
2015-10-26
14:54
Fix a C99-ism and a harmless compiler warning. file: [6919bcf1] check-in: [138783b5] user: drh branch: trunk, size: 9203
2015-10-15
16:20
Performance optimizations to the sqlite3MallocSize() by requiring the argument to always be non-NULL. file: [52485a88] check-in: [cb65989b] user: drh branch: trunk, size: 9180
2015-01-10
16:49
Improvements to compile-time-option hygiene. Use "#if OPTION" instead of "#ifdef OPTION" in cases where that makes sense, so that -DOPTION=0 will work. Add the "Have-Not" configuration in releasetest.tcl which disables all of the "HAVE_component" compile-time options. file: [abe6ee46] check-in: [9e92a5ed] user: drh branch: trunk, size: 9198
2014-09-06
16:39
Fix typos in comments. No code changes. file: [faf615aa] check-in: [e62aab5e] user: peter.d.reid branch: trunk, size: 9212
2013-11-12
21:37
Adjust the SQLITE_MALLOCSIZE defines, primarily to make sure _msize gets used with MSVC when appropriate. file: [c0c990fc] check-in: [4e7e805e] user: mistachkin branch: trunk, size: 9213
2012-08-20
15:53
Remove tab characters from source code files. Replace them with spaces. file: [437c7c4a] check-in: [7edd10a9] user: drh branch: trunk, size: 8463
2012-07-19
20:27
Further tweaks to malloc paths. file: [7ed7d5cd] check-in: [0a334441] user: dan branch: calloc, size: 8641
2012-07-18
11:28
Reorganize code to remove a few of the branches introduced into the critical sqlite3DbMallocXXX() path by the previous commit. file: [5ac4fb90] check-in: [75c095ee] user: dan branch: calloc, size: 9009
2012-07-17
19:32
Enhance the custom memory allocation interface to allow the user to specify a calloc() function. file: [bc33172c] check-in: [8752237d] user: dan branch: calloc, size: 8872
2012-02-11
21:56
Revise the preprocessor directives used to handle malloc.h and _msize, in order to detect and handle the MSVC special-case automatically. file: [b3677415] check-in: [90e73dc3] user: mistachkin branch: trunk, size: 8466
2012-02-08
12:13
Add an autoconf test for malloc.h and use the results of that test to conditionally #include the malloc.h header file. file: [c953f3bf] check-in: [16a47112] user: drh branch: trunk, size: 8790
2012-01-18
18:22
Avoid overriding the malloc_usable_size symbol using the C preprocessor as this might be confusing the build on some systems. file: [7e698fe3] check-in: [bbaec351] user: drh branch: trunk, size: 8673
12:46
Add the SQLITE_WITHOUT_MSIZE and SQLITE_WITHOUT_ZONEMALLOC macros in mem1.c to disable the use of _msize() on windows and the zone memory allocator on Apple products, respectively. file: [3137fd0e] check-in: [238e35a4] user: drh branch: trunk, size: 8634
2012-01-03
21:54
Pull all the latest trunk changes over into the apple-osx branch. file: [ed2df8b1] check-in: [8a048423] user: drh branch: apple-osx, size: 6544
2011-12-10
13:49
Always use _msize() to get memory allocation sizes on windows, without having to do anything special in the makefile. file: [7998e700] check-in: [256e27bd] user: drh branch: trunk, size: 6650
2011-12-08
20:41
Hand merge the zone allocator for MacOS from the apple-osx branch. file: [f96706e3] check-in: [0d955c20] user: drh branch: trunk, size: 6441
2011-11-09
01:53
For the mem1.c system malloc implementation, use the malloc_usable_size() function if the HAVE_MALLOC_USABLE_SIZE macro is defined. Update autoconf to look for that function when configuring. file: [7456e2ca] check-in: [2e8ab3ce] user: drh branch: experimental-pcache, size: 4659
2011-10-10
23:53
Forward port the Apple-specific changes from [db5b7b778c] in the apple-osx-377 branch. Fix this up so that it will compile and run on Linux. file: [c390a8fc] check-in: [6cb43f6c] user: drh branch: apple-osx, size: 6334
22:11
Merging in cherry picked diffs for persist wal, alloc padding, wal-safe vacuum and sqlite3_file_control based lockstate checking file: [1abe5a2c] check-in: [db5b7b77] user: adam branch: apple-osx-377, size: 5657
2010-11-19
23:50
Merge all the latest changes from the trunk into the apple-osx branch. file: [46095d62] check-in: [c8bc057c] user: drh branch: apple-osx, size: 5663
2010-08-31
15:27
Add evidence mark comments to source code. Add additional information to the documentation of sqlite3_release_memory(). Fix a minor inefficiency in mem1.c that was discovered while writing requirements tests. file: [00bd8265] check-in: [53b0c03f] user: drh branch: trunk, size: 3951
2010-06-16
19:48
Merge in changes up to and including the 3.6.23.1 release. file: [0f36f1ee] check-in: [21ca87f6] user: drh branch: apple-osx, size: 5630
2010-02-25
02:32
Merge in all of the logging enhancements. This is a cherrypick merge of the following check-ins: [103321e37a], [a8076aede3], [6d910245ad], [7c4cca6d1a], [edea3bb740], [1a6d4bb130], [a8c984c1d6], [69a493182f], and [1168763d2c]. file: [07a57cbd] check-in: [46f406b2] user: drh branch: branch-3.6.22, size: 3948
2010-02-24
21:44
Add testcase() macros beside each sqlite3_log() call to make sure it is tested with both logging enable and disabled. file: [89d4ea8d] check-in: [1168763d] user: drh branch: trunk, size: 3918
2010-02-23
20:11
Continuing improvements to error reporting and the sqlite3_log() routine. file: [760dbac6] check-in: [edea3bb7] user: drh branch: trunk, size: 3828
2010-02-17
19:34
Merge latest changes from the trunk into the apple-osx branch. file: [f38d5dcc] check-in: [4b72e39b] user: drh branch: apple-osx, size: 5330
2010-02-16
22:06
Remove duplicated assignment in realloc. file: [86f33483] check-in: [c419955d] user: shaneh branch: trunk, size: 3618
2009-12-07
23:53
Merge all changes associated with the version 3.6.21 release into the OS-X branch. file: [34cb5c25] check-in: [ad08794d] user: drh branch: apple-osx, size: 5360
2009-11-10
01:30
Remove the obsolete "$Id:$" RCS identifier strings from the source code. file: [552f7e11] check-in: [f6c045f6] user: drh branch: trunk, size: 3648
2009-11-03
22:34
Customizations for OSX contributed by Apple. file: [b46d8dab] check-in: [941a01eb] user: adam branch: apple-osx, size: 5423
2009-03-23
04:33
Use the ROUND8() macro to round an integer up to the nearest multiple of 8 and ROUNDDOWN8() macro to round down to the nearest multiple of 8. This is a cosmetic change. (CVS 6372) file: [e6d5c239] check-in: [db1d4d2f] user: danielk1977 branch: trunk, size: 3711
2008-12-10
21:19
Additional work at eliminating silly compiler warnings. (CVS 6010) file: [3bfb39e4] check-in: [ea01d437] user: drh branch: trunk, size: 3702
2008-11-19
09:05
Changes to avoid "unused parameter" compiler warnings. (CVS 5921) file: [bb8e26ad] check-in: [88134322] user: danielk1977 branch: trunk, size: 3705
2008-10-28
18:58
Remove the vestigial mem4 and mem6 memory allocators. Add the SQLITE_ZERO_MALLOC compile-time option and the mem0.c module to handle memory allocation for that case. (CVS 5848) file: [2091081d] check-in: [4651f590] user: drh branch: trunk, size: 3639
2008-09-01
18:34
Begin adding support for the SQLITE_OMIT_WSD macro. Some (many) WSD variables still need wrappers added to them. (CVS 5652) file: [5a529ff1] check-in: [573d92ab] user: danielk1977 branch: trunk, size: 3738
2008-07-25
08:49
Updates to mem6.c allocator. (CVS 5473) file: [3a7fe31d] check-in: [43a4cae2] user: danielk1977 branch: trunk, size: 3732
2008-07-24
08:20
Add mem6.c, a new allocator. More to come. (CVS 5467) file: [08f95af5] check-in: [192bc192] user: danielk1977 branch: trunk, size: 3726
2008-06-23
15:10
Handle a real system malloc() failure in mem1.c. (CVS 5281) file: [8340fa5f] check-in: [006fd69b] user: danielk1977 branch: trunk, size: 3641
14:40
Remove a non-ansi construct from mem1.c - an assert() statement before the variable declarations in a function. (CVS 5280) file: [381aa498] check-in: [1de98da6] user: danielk1977 branch: trunk, size: 3618
2008-06-17
15:12
Add internal interfaces: PageMalloc/PageFree and ScratchMalloc/ScratchFree. (CVS 5226) file: [159f10e2] check-in: [3e797d0f] user: drh branch: trunk, size: 3610
2008-06-15
02:51
Continuing work on the new memory allocation subsystem. Added routines for temporary memory allocation. Right the btree balance mechanism to only do one temporary allocation at a time. (CVS 5220) file: [c8e07e9e] check-in: [65fe7b62] user: drh branch: trunk, size: 3654
2008-06-14
16:56
Continuing progress on the new memory allocation subsystem. Added the sqlite3_mem_methods structure for defining new memory allocators at run-time. (CVS 5219) file: [9ac005ab] check-in: [f00305f4] user: drh branch: trunk, size: 3610
2008-06-13
18:24
Progress toward implementation of sqlite3_config() and a rework of the mutex and memory allocation subsystems. This is an incremental check-in. (CVS 5218) file: [18ca1e25] check-in: [a03c5af1] user: drh branch: trunk, size: 5371
2008-03-18
00:07
Add the ability to simulate out-of-memory errors when using the default memory allocator, mem1.c. Fix a bug that this enhancement revealed. (CVS 4875) file: [fc716ff5] check-in: [d55a5e1c] user: drh branch: trunk, size: 5265
2008-02-14
23:26
Add the experimental mem5.c memory allocator. Allocate the content part of cache pages separately from the header. (See check-ins (4495) and (4409)). (CVS 4789) file: [62a82170] check-in: [669ece8c] user: drh branch: trunk, size: 5075
2008-02-13
18:25
Where possible, avoid freeing buffers allocated for vdbe memory cells in case they can be reused. (CVS 4783) file: [b15e107d] check-in: [990237e2] user: danielk1977 branch: trunk, size: 5695
2007-11-29
18:36
Add the optional (and experimental) mmap() memory allocator in the mem4.c module. (CVS 4581) file: [6d1a1186] check-in: [cfd683ac] user: drh branch: trunk, size: 5525
2007-11-05
17:54
Drop support for the SQLITE_OMIT_MEMORY_ALLOCATION compile-time option. (CVS 4529) file: [ad348eed] check-in: [b57c89fe] user: drh branch: trunk, size: 5483
2007-10-19
17:47
Added an experimental malloc-free memory allocation subsystem, intended for use on embedded systems. Runs 7% faster than when using system malloc() on Linux. (CVS 4493) file: [cacb202b] check-in: [8487ca82] user: drh branch: trunk, size: 5534
2007-10-06
01:40
Fix a memory leak in the sqlite3_realloc() implementation of the non-debugging memory allocator. (CVS 4475) file: [232075b7] check-in: [7e9b886d] user: drh branch: trunk, size: 5494
2007-09-02
17:50
Fix function name typo in mem1.c. This bug managed to make it into the tree because the code in mem1.c is only compiled when the -DSQLITE_MEMDEBUG compile-time option is omitted. But pre-checkin tests usually include this option. Ticket #2612. (CVS 4368) file: [1f85902b] check-in: [59e02db2] user: drh branch: trunk, size: 5469
2007-09-01
09:02
Fix a problem handling a malloc() failure in printf.c. Also some other things to improve test coverage. (CVS 4361) file: [9a939c06] check-in: [595bfe72] user: danielk1977 branch: trunk, size: 5484
2007-08-24
03:51
The win32 driver compiles but does not yet work well. Many bugs fixed. (CVS 4282) file: [afe2fbf6] check-in: [3a68fcdd] user: drh branch: trunk, size: 5643
2007-08-22
20:18
The malloc.test script now passes all tests with no errors. (CVS 4271) file: [7b023d45] check-in: [db818430] user: drh branch: trunk, size: 5844
2007-08-17
15:53
Begin migration to using sqlite3_vfs interface. (CVS 4240) file: [30bf8be3] check-in: [af3e3c7a] user: danielk1977 branch: trunk, size: 5833
2007-08-16
19:40
Change the design of the mutex interface to allow for both "fast" and "recursive" mutexes. (CVS 4238) file: [2c6a6e3b] check-in: [160593dc] user: drh branch: trunk, size: 5823
13:01
Remove the thread specific data subsystem from the unix build. Remove legacy cruft from sqliteInt.h. Use the new mutex subsystem in the PRNG. (CVS 4237) file: [08c4ee16] check-in: [3d60c14a] user: drh branch: trunk, size: 5592
2007-08-15
20:41
Enhancements and smoke testing of the new memory allocation subsystem. Have not yet cut it over to the core, though. (CVS 4230) file: [6d4b9efe] check-in: [1dad2c0a] user: drh branch: trunk, size: 5532
17:07
Add a debugging memory allocator. (CVS 4227) file: [ef73642a] check-in: [8d2d1c4f] user: drh branch: trunk, size: 5010
13:04
Add initial implementations of mutex and memory subsystem modules. (CVS 4226) file: [f4127f6f] check-in: [c0fa3769] user: drh branch: trunk, size: 4720 Added