Commit Graph

44 Commits (master)

Author SHA1 Message Date
Oliver Kiddle 57248b8883 52750: remove ansi2knr support for old pre-ansi K&R compilers 2 months ago
Jun-ichi Takimoto a90d5ab901 48439: remove macros that became unnecessary by df48cc8 3 years ago
Felipe Contreras df48cc8404 47785: remove deprecated autoconf functions
STDC_HEADERS and TIME_WITH_SYS_TIME are deprecated.
3 years ago
Martijn Dekker c578f0a08b 45004: Fix typos in comments 5 years ago
Taylor West 14c17aa178 42411: Assume current C librarires handle free(NULL) 6 years ago
Peter Stephenson 14743c0dfd 42401: workaround for gcc -foptimize-strlen oddit.
Use realloc(NULL, ...) instead of malloc in zsh-mem calloc().
6 years ago
Daniel Shahaf c238057ccc 39874/0002 plus size=0 handling: zshcalloc: Remove code duplication. No functional change. 8 years ago
Barton E. Schaefer b2d280038f 39680: correctly handle case of popping last arena
This mattered only when compiling with --enable-stack-allocation because
otherwise the heap was never completely empty.
8 years ago
Barton E. Schaefer 429f8ae71d 39561: missing unqueue_signals() when ZSH_HEAP_DEBUG 8 years ago
Peter Stephenson 4ab3fcc90d 39545: Add some missing unqueue_signals().
All of these are added simply to fit existing logic in other branches.
8 years ago
Jun-ichi Takimoto d1d79796fb 39086: declare file local variables as 'static' 8 years ago
Barton E. Schaefer 682e779a21 unposted (cf. 36998,36999): undo 36956 / restore 34451 with expanded comment about the flip-flopping 9 years ago
Kamil Dudka 81fa9fd25a 36906: quite_signals() in ZSH_MEM realloc() 9 years ago
Barton E. Schaefer 8934007f25 36956: revert 34451, mmap() is too slow on MacOS 9 years ago
Barton E. Schaefer 506d592380 36943: restore scan for reclaimable blocks in freeheap()
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.
9 years ago
Barton E. Schaefer 643aca932a One crucial assignment accidentally lost from 36834 when merging 36836. 9 years ago
Barton E. Schaefer d77bf2ba88 36836: zhalloc() avoids re-scanning all heaps when the last known heap with 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.
9 years ago
Barton E. Schaefer 9f8e3e82dd 36834: freeheap preserves last allocated heap
This is the first of two optimizations to improve heap performance when
there are a large number of mostly-filled heap arenas.
9 years ago
Jun-ichi Takimoto 1f62d8d0be 34451: use mmap() also on Mac OS X
Let MAP_ANONYMOUS be an alias to MAP_ANON if the former is not
defined.
9 years ago
Barton E. Schaefer 2f0efe9f59 32853: redefine VARARR() to use heap rather than stack allocation
enable old behavior via "configure --with-stack-allocation"
10 years ago
Peter Stephenson 920db696cb 32789: --enable-zsh-valgrind allows analysis of heap allocation 10 years ago
Nikolas Garofil 4f4d2b8247 32737, 32736 (32741), 32735, 32734, 32733, 32732 (32739): Strict compilation
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
10 years ago
Barton E. Schaefer 6c603a4127 unposted: reformulate 32285 to lift the fheap->sp test out of the loop, improve commentary 10 years ago
Barton E. Schaefer 23f98c3e1d 32285: restart the fheap search in freeheap if the current fheap arena is about to be discarded; fixes crash 10 years ago
Peter Stephenson ad30100e09 29282: hide prototypes for ZSH_HEAP_DEBUG with #ifdef's 13 years ago
Peter Stephenson 506615ff94 29267: add -enable-zsh-debug and use for debugging completion matcher groups 13 years ago
Bart Schaefer 6150565494 29175: optimize freeheap 13 years ago
Peter Stephenson ced3570bd1 25632: xRaich[o]²x: Src/mem.c: munmap() argument was wrong. 16 years ago
Peter Stephenson 8ab895baf0 25057: better debug error on memory failure 16 years ago
Peter Stephenson 5f13656d7f 23339: make malloc(0) allocate a byte 17 years ago
Peter Stephenson dd5602f59b 22474: use variable argument lists to improve error message handling 18 years ago
Bart Schaefer 20aae107b8 22321: optimize 22318. 18 years ago
Peter Stephenson f5d9a995f9 20173: fix crash when reallocating heaps 20 years ago
Wayne Davison fb0937a69e Marked unused parameters with the new UNUSED() macro. 20 years ago
Peter Stephenson 8723d530b3 fix bug I missed, somehow 20 years ago
Peter Stephenson 10744b66fd 19920: attempt to improve hrealloc() 20 years ago
Peter Stephenson 815bc92148 a la 19209: zcalloc -> zshcalloc 21 years ago
Peter Stephenson 9634760d5e 17582: Improved option argument handling.
unposted: Updated version to 4.1.0-dev-6 because of interface change.
22 years ago
Oliver Kiddle af0697b705 17503: fix various typos and spelling mistakes in source code comments 22 years ago
Sven Wischnowsky 33ec971c33 two optimisations 24 years ago
Sven Wischnowsky 757168e2c8 remove 13108 (trap queues); replace with signal queueing to ensure that user signal handlers are only executed when it is safe to run them (13365) 24 years ago
Clint Adams 946085efa5 12846: moved simple string manipulation functions to string.c 24 years ago
Peter Stephenson 4a5882eeb3 12411, 12419: Andrej: environment handling with fewer assumptions 24 years ago
Tanaka Akira e74702b467 Initial revision 25 years ago