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