1 |
27 |
unneback |
2003-02-05 Jonathan Larmour
|
2 |
|
|
|
3 |
|
|
* include/memjoin.inl: Don't use default arg in definition.
|
4 |
|
|
|
5 |
|
|
2003-02-04 John Dallaway
|
6 |
|
|
|
7 |
|
|
* src/heapgen.tcl: Accommodate POSIX-style arguments
|
8 |
|
|
under Cygwin.
|
9 |
|
|
|
10 |
|
|
2003-01-29 John Dallaway
|
11 |
|
|
|
12 |
|
|
* src/heapgen.tcl: Accommodate latest Cygwin Tcl shell
|
13 |
|
|
(tclsh83.exe)
|
14 |
|
|
|
15 |
|
|
2002-05-10 Jonathan Larmour
|
16 |
|
|
|
17 |
|
|
* tests/heaptest.c (test_pat): Make failure messages clearer.
|
18 |
|
|
(cyg_start): Output what failures mean.
|
19 |
|
|
|
20 |
|
|
2002-04-24 Yoshinori Sato
|
21 |
|
|
|
22 |
|
|
* src/memfixed.cxx (resize_alloc): Don't set default args in func
|
23 |
|
|
definition.
|
24 |
|
|
|
25 |
|
|
2002-01-30 Bart Veer
|
26 |
|
|
|
27 |
|
|
* tests/malloc4.cxx:
|
28 |
|
|
Never call realloc() with a new size of 0, which frees the buffer.
|
29 |
|
|
Fix the volatility of ptr.p
|
30 |
|
|
|
31 |
|
|
2002-01-23 Jesper Skov
|
32 |
|
|
|
33 |
|
|
* tests/malloc4.cxx (myrand): Fix overflow.
|
34 |
|
|
|
35 |
|
|
2002-01-15 Jonathan Larmour
|
36 |
|
|
|
37 |
|
|
* tests/malloc4.cxx (myrand): Fix so that it really treats the limit
|
38 |
|
|
as a limit.
|
39 |
|
|
|
40 |
|
|
2001-10-17 Jesper Skov
|
41 |
|
|
|
42 |
|
|
* include/sepmetaimpl.inl: CYGINT_ISO_STRING_MEMFUNCS checks
|
43 |
|
|
changed to ifdef.
|
44 |
|
|
|
45 |
|
|
2001-10-11 Jesper Skov
|
46 |
|
|
|
47 |
|
|
* tests/testaux.hxx (new_thread): Fixed allocation: increase
|
48 |
|
|
counter before starting threads which have been allocated
|
49 |
|
|
resources.
|
50 |
|
|
|
51 |
|
|
2001-10-08 Jonathan Larmour
|
52 |
|
|
|
53 |
|
|
* cdl/memalloc.cdl: Only build malloc.cxx and kapi.cxx when needed.
|
54 |
|
|
|
55 |
|
|
2001-09-20 Jesper Skov
|
56 |
|
|
|
57 |
|
|
* tests/heaptest.c: Fix failure reporting.
|
58 |
|
|
|
59 |
|
|
2001-09-07 Jesper Skov
|
60 |
|
|
|
61 |
|
|
* tests/heaptest.c: Added some extra output on failures.
|
62 |
|
|
|
63 |
|
|
2001-08-01 Jonathan Larmour
|
64 |
|
|
|
65 |
|
|
* include/sepmetaimpl.inl: Define check_free_memdq and
|
66 |
|
|
check_alloced_memdq as inlines.
|
67 |
|
|
|
68 |
|
|
* cdl/memalloc.cdl: Add new allocator supporting separate metadata,
|
69 |
|
|
and the associated config options, and build sepmeta.cxx and tests.
|
70 |
|
|
Build heapgeninc.tcl with macros that work with both gcc2 and gcc3.
|
71 |
|
|
Ditto for heaps.o.
|
72 |
|
|
Add CYGBLD_MEMALLOC_MALLOC_EXTERNAL_HEAP_H to allow external entities
|
73 |
|
|
to define the heap.
|
74 |
|
|
* src/malloc.cxx: Include CYGBLD_MEMALLOC_MALLOC_EXTERNAL_HEAP_H if
|
75 |
|
|
defined instead of default heap definition.
|
76 |
|
|
* include/sepmeta.hxx, include/sepmetaimpl.hxx, include/sepmetaimpl.inl,
|
77 |
|
|
src/sepmeta.cxx, tests/sepmeta1.cxx, tests/sepmeta2.cxx:
|
78 |
|
|
New files for seperated metadata allocator.
|
79 |
|
|
|
80 |
|
|
2001-07-18 Jonathan Larmour
|
81 |
|
|
|
82 |
|
|
* src/heapgen.tcl: Use constructor priority of CYG_INIT_MEMALLOC
|
83 |
|
|
for heap objects in generated heaps.cxx.
|
84 |
|
|
|
85 |
|
|
2001-07-12 Jonathan Larmour
|
86 |
|
|
|
87 |
|
|
* tests/malloc1.c (main): Accoutn for allocators that do allocate
|
88 |
|
|
space for allocs of 0.
|
89 |
|
|
Test that allocating all space works.
|
90 |
|
|
* src/dlmalloc.cxx (get_status): Correct again calculation of maxfree
|
91 |
|
|
|
92 |
|
|
2001-06-28 Jonathan Larmour
|
93 |
|
|
|
94 |
|
|
* include/memjoin.inl (~Cyg_Mempool_Joined): free even when asserts
|
95 |
|
|
disabled.
|
96 |
|
|
|
97 |
|
|
* include/memvar.hxx (class Cyg_Mempool_Variable): Comment out argument
|
98 |
|
|
names for consistency.
|
99 |
|
|
* include/memfixed.hxx (class Cyg_Mempool_Fixed): Ditto.
|
100 |
|
|
* include/memjoin.hxx (class Cyg_Mempool_Joined): Ditto.
|
101 |
|
|
|
102 |
|
|
2001-06-20 Jonathan Larmour
|
103 |
|
|
|
104 |
|
|
* include/mvarimpl.inl (get_status): Correct calculation of maxfree
|
105 |
|
|
by taking into account metadata.
|
106 |
|
|
|
107 |
|
|
2001-06-18 Jonathan Larmour
|
108 |
|
|
|
109 |
|
|
* cdl/memalloc.cdl: Add heaptest test.
|
110 |
|
|
|
111 |
|
|
* tests/heaptest.c: New test to do a memory check of all of heap.
|
112 |
|
|
|
113 |
|
|
* src/dlmalloc.cxx (get_status): Correct maxfree and totalfree
|
114 |
|
|
by accounting for block headers.
|
115 |
|
|
|
116 |
|
|
* tests/realloc.c (cyg_start): Remove warning from declaration.
|
117 |
|
|
* tests/malloc1.c (cyg_start): Ditto.
|
118 |
|
|
* tests/malloc2.c (cyg_start): Ditto.
|
119 |
|
|
* tests/malloc3.c (cyg_start): Ditto.
|
120 |
|
|
* tests/malloc4.cxx (cyg_start): Ditto. Also add DEBUGTEST define
|
121 |
|
|
and fix comment.
|
122 |
|
|
|
123 |
|
|
* tests/testaux.hxx (STACKSIZE): Double.
|
124 |
|
|
|
125 |
|
|
2001-05-02 Hugo Tyson
|
126 |
|
|
|
127 |
|
|
* src/dlmalloc.cxx (Cyg_Mempool_dlmalloc_Implementation): Fix
|
128 |
|
|
previous change; "top" is a pseudo variable via a NULL pointer if
|
129 |
|
|
the heap is not initialized, so you can't use it as a flag for "no
|
130 |
|
|
mem here"; and a typo, the comparison was reversed. The two hid
|
131 |
|
|
each other, so the check for "no mem here" usually said "OK".
|
132 |
|
|
|
133 |
|
|
2001-05-01 Jonathan Larmour
|
134 |
|
|
|
135 |
|
|
* include/mvarimpl.inl (try_alloc): Allow zero sized heaps.
|
136 |
|
|
(Cyg_Mempool_Variable_Implementation): Ditto.
|
137 |
|
|
* src/dlmalloc.cxx (try_alloc): Ditto.
|
138 |
|
|
(Cyg_Mempool_dlmalloc_Implementation): Ditto.
|
139 |
|
|
|
140 |
|
|
2001-04-12 Hugo Tyson
|
141 |
|
|
|
142 |
|
|
* include/memjoin.inl (resize_alloc): Fix typo so it compiles.
|
143 |
|
|
This only applies if you configure multiple heaps.
|
144 |
|
|
|
145 |
|
|
2001-03-21 Jonathan Larmour
|
146 |
|
|
|
147 |
|
|
* cdl/memalloc.cdl: Specify explicit output file when preprocessing
|
148 |
|
|
heapgen.cpp. Improves portability.
|
149 |
|
|
|
150 |
|
|
2001-02-01 Jonathan Larmour
|
151 |
|
|
|
152 |
|
|
* tests/malloc4.cxx: Use semaphores to sync startup order.
|
153 |
|
|
|
154 |
|
|
2000-11-28 Jonathan Larmour
|
155 |
|
|
|
156 |
|
|
* src/heapgen.tcl: Don't use cygpath -s for now as not all cygwins
|
157 |
|
|
have it yet.
|
158 |
|
|
|
159 |
|
|
2000-11-25 Jonathan Larmour
|
160 |
|
|
|
161 |
|
|
* cdl/memalloc.cdl: Make sure PWD variable doesn't clash with bash PWD
|
162 |
|
|
by renaming to XPWD
|
163 |
|
|
|
164 |
|
|
2000-11-24 Jonathan Larmour
|
165 |
|
|
|
166 |
|
|
* cdl/memalloc.cdl: Invoke heapgen.tcl with build directory
|
167 |
|
|
surrounded by quotes (and do so in a portable way).
|
168 |
|
|
|
169 |
|
|
* src/heapgen.tcl: recurse back in on cygwin with correct quoting
|
170 |
|
|
to allow directories containing spaces. Also in a Solaris shell
|
171 |
|
|
compatible way.
|
172 |
|
|
|
173 |
|
|
2000-11-21 Jonathan Larmour
|
174 |
|
|
|
175 |
|
|
* cdl/memalloc.cdl (CYGSEM_MEMALLOC_MALLOC_ZERO_RETURNS_NULL):
|
176 |
|
|
New option.
|
177 |
|
|
* src/malloc.cxx (malloc): Use above option to decide if NULL should
|
178 |
|
|
be returned on malloc(0).
|
179 |
|
|
|
180 |
|
|
2000-11-01 Jesper Skov
|
181 |
|
|
|
182 |
|
|
* tests/realloc.c (main): Use reasonable factor when making too
|
183 |
|
|
large realloc (targets with 64MB would cause an overflow).
|
184 |
|
|
|
185 |
|
|
2000-10-31 Jonathan Larmour
|
186 |
|
|
|
187 |
|
|
* tests/testaux.hxx: Prototype cyg_hal_invoke_constructors()
|
188 |
|
|
[ Forgot to check this in at the same time as below ]
|
189 |
|
|
|
190 |
|
|
2000-10-20 Jonathan Larmour
|
191 |
|
|
|
192 |
|
|
* tests/dlmalloc1.cxx:
|
193 |
|
|
* tests/dlmalloc2.cxx:
|
194 |
|
|
* tests/malloc4.cxx:
|
195 |
|
|
* tests/memfix1.cxx:
|
196 |
|
|
* tests/memfix2.cxx:
|
197 |
|
|
* tests/memvar1.cxx:
|
198 |
|
|
* tests/memvar2.cxx:
|
199 |
|
|
Make sure default priority constructors have been invoked.
|
200 |
|
|
|
201 |
|
|
2000-09-14 Jesper Skov
|
202 |
|
|
|
203 |
|
|
* tests/realloc.c (main): fix warning.
|
204 |
|
|
* tests/malloc1.c (main): Same.
|
205 |
|
|
* tests/malloc2.c (main): Same.
|
206 |
|
|
* tests/malloc3.c (main): Same.
|
207 |
|
|
|
208 |
|
|
2000-08-31 Jonathan Larmour
|
209 |
|
|
|
210 |
|
|
* cdl/memalloc.cdl: Make dlmalloc the default malloc implementation now.
|
211 |
|
|
Also add info to the variable block and dlmalloc descriptions to
|
212 |
|
|
describe the pros and cons of these allocators.
|
213 |
|
|
|
214 |
|
|
2000-08-09 Jonathan Larmour
|
215 |
|
|
|
216 |
|
|
* tests/malloc4.cxx (thrfree): Don't yield at loop end - actually delay
|
217 |
|
|
(thrrealloc): Ditto
|
218 |
|
|
(thrcalloc): Ditto
|
219 |
|
|
(thrmalloc): Ditto
|
220 |
|
|
|
221 |
|
|
2000-08-08 Jonathan Larmour
|
222 |
|
|
|
223 |
|
|
* tests/malloc4.cxx: Make output more frequent
|
224 |
|
|
|
225 |
|
|
2000-08-04 Jonathan Larmour
|
226 |
|
|
|
227 |
|
|
* tests/dlmalloc1.cxx (STACKSIZE): Define larger than default.
|
228 |
|
|
|
229 |
|
|
2000-08-03 Jonathan Larmour
|
230 |
|
|
|
231 |
|
|
* include/dlmallocimpl.hxx (class Cyg_Mempool_dlmalloc_Implementation):
|
232 |
|
|
Ensure typedefs are public so dlmalloc.cxx can use them at outer level.
|
233 |
|
|
|
234 |
|
|
2000-08-02 Jonathan Larmour
|
235 |
|
|
|
236 |
|
|
* src/heapgen.tcl: Fix tclsh invocation quoting problems
|
237 |
|
|
|
238 |
|
|
2000-07-31 Jonathan Larmour
|
239 |
|
|
|
240 |
|
|
* src/heapgen.tcl: Allow builddir to be specified on command-line
|
241 |
|
|
* cdl/memalloc.cdl: Work around NT cygtclsh80 bug by cd'ing into
|
242 |
|
|
heapgen.tcl's directory before running it
|
243 |
|
|
|
244 |
|
|
2000-07-26 Jonathan Larmour
|
245 |
|
|
|
246 |
|
|
* tests/malloc4.cxx: Call rand_r() rather than rand, and use a seed
|
247 |
|
|
var in each thread.
|
248 |
|
|
|
249 |
|
|
2000-07-25 Jonathan Larmour
|
250 |
|
|
|
251 |
|
|
* tests/malloc4.cxx (thrfree): Get mem size here. Tidy output.
|
252 |
|
|
(thrmalloc): Get mem size in thrfree instead
|
253 |
|
|
|
254 |
|
|
* src/heapgen.tcl: Refine search for user-defined name to cope with
|
255 |
|
|
use of CYG_LABEL_DEFN macro
|
256 |
|
|
|
257 |
|
|
2000-07-19 Jonathan Larmour
|
258 |
|
|
|
259 |
|
|
* cdl/memalloc.cdl (CYGIMP_MEMALLOC_ALLOCATOR_DLMALLOC_SAFE_MULTIPLE):
|
260 |
|
|
Default to 1
|
261 |
|
|
|
262 |
|
|
* include/mvarimpl.inl (resize_alloc): Remember to adjust other
|
263 |
|
|
freelist entries when extending block
|
264 |
|
|
|
265 |
|
|
2000-07-04 Jonathan Larmour
|
266 |
|
|
|
267 |
|
|
* CYGPKG_MEMALLOC:
|
268 |
|
|
|
269 |
|
|
Created as new package, merging existing memory allocator related stuff
|
270 |
|
|
from the kernel and libc. Many bug fixes to existing stuff, as
|
271 |
|
|
well as performance improvements, and extra features such as
|
272 |
|
|
a port of dlmalloc, and the ability to support multiple disjoint
|
273 |
|
|
heaps, possibly with run-time configurable size.
|
274 |
|
|
There's even a bit of documentation, and some new tests
|
275 |
|
|
|
276 |
|
|
//===========================================================================
|
277 |
|
|
//####ECOSGPLCOPYRIGHTBEGIN####
|
278 |
|
|
// -------------------------------------------
|
279 |
|
|
// This file is part of eCos, the Embedded Configurable Operating System.
|
280 |
|
|
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
|
281 |
|
|
//
|
282 |
|
|
// eCos is free software; you can redistribute it and/or modify it under
|
283 |
|
|
// the terms of the GNU General Public License as published by the Free
|
284 |
|
|
// Software Foundation; either version 2 or (at your option) any later version.
|
285 |
|
|
//
|
286 |
|
|
// eCos is distributed in the hope that it will be useful, but WITHOUT ANY
|
287 |
|
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
288 |
|
|
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
289 |
|
|
// for more details.
|
290 |
|
|
//
|
291 |
|
|
// You should have received a copy of the GNU General Public License along
|
292 |
|
|
// with eCos; if not, write to the Free Software Foundation, Inc.,
|
293 |
|
|
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
|
294 |
|
|
//
|
295 |
|
|
// As a special exception, if other files instantiate templates or use macros
|
296 |
|
|
// or inline functions from this file, or you compile this file and link it
|
297 |
|
|
// with other works to produce a work based on this file, this file does not
|
298 |
|
|
// by itself cause the resulting work to be covered by the GNU General Public
|
299 |
|
|
// License. However the source code for this file must still be made available
|
300 |
|
|
// in accordance with section (3) of the GNU General Public License.
|
301 |
|
|
//
|
302 |
|
|
// This exception does not invalidate any other reasons why a work based on
|
303 |
|
|
// this file might be covered by the GNU General Public License.
|
304 |
|
|
//
|
305 |
|
|
// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
|
306 |
|
|
// at http://sources.redhat.com/ecos/ecos-license/
|
307 |
|
|
// -------------------------------------------
|
308 |
|
|
//####ECOSGPLCOPYRIGHTEND####
|
309 |
|
|
//===========================================================================
|