summaryrefslogtreecommitdiff
path: root/Src/mem.c
AgeCommit message (Collapse)AuthorFilesLines
2024-03-1852750: remove ansi2knr support for old pre-ansi K&R compilersOliver Kiddle1-4/+4
2021-04-1248439: remove macros that became unnecessary by df48cc8Jun-ichi Takimoto1-26/+17
2021-04-0947785: remove deprecated autoconf functionsFelipe Contreras1-12/+4
STDC_HEADERS and TIME_WITH_SYS_TIME are deprecated.
2019-12-1145004: Fix typos in commentsMartijn Dekker1-1/+1
2018-03-0442411: Assume current C librarires handle free(NULL)Taylor West1-4/+2
2018-02-2642401: workaround for gcc -foptimize-strlen oddit.Peter Stephenson1-1/+7
Use realloc(NULL, ...) instead of malloc in zsh-mem calloc().
2016-11-1139874/0002 plus size=0 handling: zshcalloc: Remove code duplication. No ↵Daniel Shahaf1-9/+1
functional change.
2016-10-1939680: correctly handle case of popping last arenaBarton E. Schaefer1-1/+2
This mattered only when compiling with --enable-stack-allocation because otherwise the heap was never completely empty.
2016-10-0439561: missing unqueue_signals() when ZSH_HEAP_DEBUGBarton E. Schaefer1-2/+7
2016-10-0339545: Add some missing unqueue_signals().Peter Stephenson1-2/+6
All of these are added simply to fit existing logic in other branches.
2016-08-2339086: declare file local variables as 'static'Jun-ichi Takimoto1-2/+2
2015-10-31unposted (cf. 36998,36999): undo 36956 / restore 34451 with expanded comment ↵Barton E. Schaefer1-4/+3
about the flip-flopping
2015-10-2636906: quite_signals() in ZSH_MEM realloc()Kamil Dudka1-2/+7
2015-10-2636956: revert 34451, mmap() is too slow on MacOSBarton E. Schaefer1-0/+7
2015-10-2436943: restore scan for reclaimable blocks in freeheap()Barton E. Schaefer1-2/+8
That scan had been removed by 36834, but testing showed memory usage climbing too high in cases where a new arena was always added at the end of the heap list.
2015-10-11One crucial assignment accidentally lost from 36834 when merging 36836.Barton E. Schaefer1-2/+3
2015-10-1136836: zhalloc() avoids re-scanning all heaps when the last known heap with ↵Barton E. Schaefer1-4/+8
free space does not have enough space This is the second of two performance optimizations for situations where all heap arenas in the list are mostly full.
2015-10-1136834: freeheap preserves last allocated heapBarton E. Schaefer1-13/+52
This is the first of two optimizations to improve heap performance when there are a large number of mostly-filled heap arenas.
2015-02-0334451: use mmap() also on Mac OS XJun-ichi Takimoto1-0/+4
Let MAP_ANONYMOUS be an alias to MAP_ANON if the former is not defined.
2014-07-2432853: redefine VARARR() to use heap rather than stack allocationBarton E. Schaefer1-1/+4
enable old behavior via "configure --with-stack-allocation"
2014-06-2432789: --enable-zsh-valgrind allows analysis of heap allocationPeter Stephenson1-4/+95
2014-06-0732737, 32736 (32741), 32735, 32734, 32733, 32732 (32739): Strict compilationNikolas Garofil1-3/+3
fixes Src/utils.c: properly ifdef declarations Src/zsh_system.h: memmove() should return its dest argument Src/signals.c: define ret before use Src/mem.c: remove unused pointers Src/prototypes.h: use size_t in bcopy() Src/compat.c: fix const declaration inconsistency
2014-01-22unposted: reformulate 32285 to lift the fheap->sp test out of the loop, ↵Barton E. Schaefer1-15/+9
improve commentary
2014-01-1832285: restart the fheap search in freeheap if the current fheap arena is ↵Barton E. Schaefer1-0/+9
about to be discarded; fixes crash
2011-05-1429282: hide prototypes for ZSH_HEAP_DEBUG with #ifdef'sPeter Stephenson1-0/+5
2011-05-1429267: add -enable-zsh-debug and use for debugging completion matcher groupsPeter Stephenson1-0/+194
2011-05-0729175: optimize freeheapBart Schaefer1-2/+22
2008-09-1125632: xRaich[o]²x: Src/mem.c: munmap() argument was wrong.Peter Stephenson1-2/+2
2008-05-1725057: better debug error on memory failurePeter Stephenson1-1/+1
2007-04-3023339: make malloc(0) allocate a bytePeter Stephenson1-1/+17
2006-05-3022474: use variable argument lists to improve error message handlingPeter Stephenson1-4/+4
2006-03-0622321: optimize 22318.Bart Schaefer1-0/+15
2004-07-1720173: fix crash when reallocating heapsPeter Stephenson1-0/+1
2004-06-02Marked unused parameters with the new UNUSED() macro.Wayne Davison1-1/+1
2004-05-12fix bug I missed, somehowPeter Stephenson1-12/+14
2004-05-1219920: attempt to improve hrealloc()Peter Stephenson1-39/+114
2003-10-29a la 19209: zcalloc -> zshcallocPeter Stephenson1-2/+2
2002-08-2717582: Improved option argument handling.Peter Stephenson1-8/+8
unposted: Updated version to 4.1.0-dev-6 because of interface change.
2002-08-0517503: fix various typos and spelling mistakes in source code commentsOliver Kiddle1-3/+3
2001-03-07two optimisationsSven Wischnowsky1-3/+5
2001-01-16remove 13108 (trap queues); replace with signal queueing to ensure that user ↵Sven Wischnowsky1-7/+52
signal handlers are only executed when it is safe to run them (13365)
2000-09-1912846: moved simple string manipulation functions to string.cClint Adams1-26/+0
2000-07-2812411, 12419: Andrej: environment handling with fewer assumptionsPeter Stephenson1-124/+252
1999-04-15Initial revisionTanaka Akira1-0/+1254