about summary refs log tree commit diff
path: root/Src/mem.c
Commit message (Collapse)AuthorAgeFilesLines
* 42411: Assume current C librarires handle free(NULL)Taylor West2018-03-041-4/+2
|
* 42401: workaround for gcc -foptimize-strlen oddit.Peter Stephenson2018-02-261-1/+7
| | | | Use realloc(NULL, ...) instead of malloc in zsh-mem calloc().
* 39874/0002 plus size=0 handling: zshcalloc: Remove code duplication. No ↵Daniel Shahaf2016-11-111-9/+1
| | | | functional change.
* 39680: correctly handle case of popping last arenaBarton E. Schaefer2016-10-191-1/+2
| | | | | This mattered only when compiling with --enable-stack-allocation because otherwise the heap was never completely empty.
* 39561: missing unqueue_signals() when ZSH_HEAP_DEBUGBarton E. Schaefer2016-10-041-2/+7
|
* 39545: Add some missing unqueue_signals().Peter Stephenson2016-10-031-2/+6
| | | | All of these are added simply to fit existing logic in other branches.
* 39086: declare file local variables as 'static'Jun-ichi Takimoto2016-08-231-2/+2
|
* unposted (cf. 36998,36999): undo 36956 / restore 34451 with expanded comment ↵Barton E. Schaefer2015-10-311-4/+3
| | | | about the flip-flopping
* 36906: quite_signals() in ZSH_MEM realloc()Kamil Dudka2015-10-261-2/+7
|
* 36956: revert 34451, mmap() is too slow on MacOSBarton E. Schaefer2015-10-261-0/+7
|
* 36943: restore scan for reclaimable blocks in freeheap()Barton E. Schaefer2015-10-241-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.
* One crucial assignment accidentally lost from 36834 when merging 36836.Barton E. Schaefer2015-10-111-2/+3
|
* 36836: zhalloc() avoids re-scanning all heaps when the last known heap with ↵Barton E. Schaefer2015-10-111-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.
* 36834: freeheap preserves last allocated heapBarton E. Schaefer2015-10-111-13/+52
| | | | | This is the first of two optimizations to improve heap performance when there are a large number of mostly-filled heap arenas.
* 34451: use mmap() also on Mac OS XJun-ichi Takimoto2015-02-031-0/+4
| | | | | Let MAP_ANONYMOUS be an alias to MAP_ANON if the former is not defined.
* 32853: redefine VARARR() to use heap rather than stack allocationBarton E. Schaefer2014-07-241-1/+4
| | | | enable old behavior via "configure --with-stack-allocation"
* 32789: --enable-zsh-valgrind allows analysis of heap allocationPeter Stephenson2014-06-241-4/+95
|
* 32737, 32736 (32741), 32735, 32734, 32733, 32732 (32739): Strict compilationNikolas Garofil2014-06-071-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
* unposted: reformulate 32285 to lift the fheap->sp test out of the loop, ↵Barton E. Schaefer2014-01-221-15/+9
| | | | improve commentary
* 32285: restart the fheap search in freeheap if the current fheap arena is ↵Barton E. Schaefer2014-01-181-0/+9
| | | | about to be discarded; fixes crash
* 29282: hide prototypes for ZSH_HEAP_DEBUG with #ifdef'sPeter Stephenson2011-05-141-0/+5
|
* 29267: add -enable-zsh-debug and use for debugging completion matcher groupsPeter Stephenson2011-05-141-0/+194
|
* 29175: optimize freeheapBart Schaefer2011-05-071-2/+22
|
* 25632: xRaich[o]²x: Src/mem.c: munmap() argument was wrong.Peter Stephenson2008-09-111-2/+2
|
* 25057: better debug error on memory failurePeter Stephenson2008-05-171-1/+1
|
* 23339: make malloc(0) allocate a bytePeter Stephenson2007-04-301-1/+17
|
* 22474: use variable argument lists to improve error message handlingPeter Stephenson2006-05-301-4/+4
|
* 22321: optimize 22318.Bart Schaefer2006-03-061-0/+15
|
* 20173: fix crash when reallocating heapsPeter Stephenson2004-07-171-0/+1
|
* Marked unused parameters with the new UNUSED() macro.Wayne Davison2004-06-021-1/+1
|
* fix bug I missed, somehowPeter Stephenson2004-05-121-12/+14
|
* 19920: attempt to improve hrealloc()Peter Stephenson2004-05-121-39/+114
|
* a la 19209: zcalloc -> zshcallocPeter Stephenson2003-10-291-2/+2
|
* 17582: Improved option argument handling.Peter Stephenson2002-08-271-8/+8
| | | | unposted: Updated version to 4.1.0-dev-6 because of interface change.
* 17503: fix various typos and spelling mistakes in source code commentsOliver Kiddle2002-08-051-3/+3
|
* two optimisationsSven Wischnowsky2001-03-071-3/+5
|
* remove 13108 (trap queues); replace with signal queueing to ensure that user ↵Sven Wischnowsky2001-01-161-7/+52
| | | | signal handlers are only executed when it is safe to run them (13365)
* 12846: moved simple string manipulation functions to string.cClint Adams2000-09-191-26/+0
|
* 12411, 12419: Andrej: environment handling with fewer assumptionsPeter Stephenson2000-07-281-124/+252
|
* Initial revisionTanaka Akira1999-04-151-0/+1254