Barton E. Schaefer
682e779a21
unposted (cf. 36998,36999): undo 36956 / restore 34451 with expanded comment about the flip-flopping
2015-10-31 09:54:04 -07:00
Kamil Dudka
81fa9fd25a
36906: quite_signals() in ZSH_MEM realloc()
2015-10-26 14:27:26 -07:00
Barton E. Schaefer
8934007f25
36956: revert 34451, mmap() is too slow on MacOS
2015-10-26 07:19:01 -07:00
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.
2015-10-24 13:43:21 -07:00
Barton E. Schaefer
643aca932a
One crucial assignment accidentally lost from 36834 when merging 36836.
2015-10-11 21:48:10 -07:00
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.
2015-10-11 21:16:58 -07:00
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.
2015-10-11 21:11:10 -07:00
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.
2015-02-03 20:50:26 +09:00
Barton E. Schaefer
2f0efe9f59
32853: redefine VARARR() to use heap rather than stack allocation
...
enable old behavior via "configure --with-stack-allocation"
2014-07-24 08:45:16 -07:00
Peter Stephenson
920db696cb
32789: --enable-zsh-valgrind allows analysis of heap allocation
2014-06-24 18:50:50 +01:00
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
2014-06-07 13:48:40 -07:00
Barton E. Schaefer
6c603a4127
unposted: reformulate 32285 to lift the fheap->sp test out of the loop, improve commentary
2014-01-22 21:47:29 -08:00
Barton E. Schaefer
23f98c3e1d
32285: restart the fheap search in freeheap if the current fheap arena is about to be discarded; fixes crash
2014-01-18 21:22:11 -08:00
Peter Stephenson
ad30100e09
29282: hide prototypes for ZSH_HEAP_DEBUG with #ifdef's
2011-05-14 17:23:23 +00:00
Peter Stephenson
506615ff94
29267: add -enable-zsh-debug and use for debugging completion matcher groups
2011-05-14 00:07:41 +00:00
Bart Schaefer
6150565494
29175: optimize freeheap
2011-05-07 19:32:57 +00:00
Peter Stephenson
ced3570bd1
25632: xRaich[o]²x: Src/mem.c: munmap() argument was wrong.
2008-09-11 19:14:13 +00:00
Peter Stephenson
8ab895baf0
25057: better debug error on memory failure
2008-05-17 17:55:37 +00:00
Peter Stephenson
5f13656d7f
23339: make malloc(0) allocate a byte
2007-04-30 09:27:23 +00:00
Peter Stephenson
dd5602f59b
22474: use variable argument lists to improve error message handling
2006-05-30 22:35:03 +00:00
Bart Schaefer
20aae107b8
22321: optimize 22318.
2006-03-06 15:38:59 +00:00
Peter Stephenson
f5d9a995f9
20173: fix crash when reallocating heaps
2004-07-17 19:24:59 +00:00
Wayne Davison
fb0937a69e
Marked unused parameters with the new UNUSED() macro.
2004-06-02 22:14:25 +00:00
Peter Stephenson
8723d530b3
fix bug I missed, somehow
2004-05-12 10:26:41 +00:00
Peter Stephenson
10744b66fd
19920: attempt to improve hrealloc()
2004-05-12 10:20:33 +00:00
Peter Stephenson
815bc92148
a la 19209: zcalloc -> zshcalloc
2003-10-29 19:17:30 +00:00
Peter Stephenson
9634760d5e
17582: Improved option argument handling.
...
unposted: Updated version to 4.1.0-dev-6 because of interface change.
2002-08-27 21:10:30 +00:00
Oliver Kiddle
af0697b705
17503: fix various typos and spelling mistakes in source code comments
2002-08-05 12:35:59 +00:00
Sven Wischnowsky
33ec971c33
two optimisations
2001-03-07 12:58:40 +00:00
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)
2001-01-16 13:44:18 +00:00
Clint Adams
946085efa5
12846: moved simple string manipulation functions to string.c
2000-09-19 15:54:30 +00:00
Peter Stephenson
4a5882eeb3
12411, 12419: Andrej: environment handling with fewer assumptions
2000-07-28 09:10:35 +00:00
Tanaka Akira
e74702b467
Initial revision
1999-04-15 18:05:38 +00:00