1 2005-07-30 Andrew Lunn <andrew.lunn@ascom.ch>
3 * tests/heaptest.c (test_pat): Casts to prevent compiler warnings.
4 * tests/testaux.hxx: new cannot be both global and static.
6 2005-07-22 Andrew Lunn <andrew.lunn@ascom.ch>
8 * cdl/memalloc.cdl: Use the CXXFLAGS for the native compiler to
9 avoid passing it flags only valid for C.
11 2005-03-27 Andrew Lunn <andrew.lunn@ascom.ch>
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
18 2004-10-04 Oyvind Harboe <oyvind.harboe@zylin.com>
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
27 2004-10-01 Oyvind Harboe <oyvind.harboe@zylin.com>
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.
32 2004-06-24 Oyvind Harboe <oyvind.harboe@zylin.com>
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.
39 2004-02-15 Jonathan Larmour <jifl@eCosCentric.com>
41 * include/kapi.h: Add throw specifications throughout.
42 * src/kapi.cxx: Ditto.
44 2003-10-06 Andrew Lunn <andrew.lunn@ascom.ch>
46 * src/dlmalloc.cxx (Cyg_Mempool_dlmalloc_Implementation): Fixed
47 compiler warning added by previous patch.
49 2003-09-30 Eric Doenges <Eric.Doengea@DynaPel.com>
51 * cdl/memalloc.cdl, src/dlmalloc.cxx: Make the minimum memory
52 alignment a configuration option for Doug Lea's memory allocator.
54 2003-02-05 Jonathan Larmour <jifl@eCosCentric.com>
56 * include/memjoin.inl: Don't use default arg in definition.
58 2003-02-04 John Dallaway <jld@ecoscentric.com>
60 * src/heapgen.tcl: Accommodate POSIX-style arguments
63 2003-01-29 John Dallaway <jld@ecoscentric.com>
65 * src/heapgen.tcl: Accommodate latest Cygwin Tcl shell
68 2002-05-10 Jonathan Larmour <jlarmour@redhat.com>
70 * tests/heaptest.c (test_pat): Make failure messages clearer.
71 (cyg_start): Output what failures mean.
73 2002-04-24 Yoshinori Sato <qzb04471@nifty.ne.jp>
75 * src/memfixed.cxx (resize_alloc): Don't set default args in func
78 2002-01-30 Bart Veer <bartv@redhat.com>
81 Never call realloc() with a new size of 0, which frees the buffer.
82 Fix the volatility of ptr.p
84 2002-01-23 Jesper Skov <jskov@redhat.com>
86 * tests/malloc4.cxx (myrand): Fix overflow.
88 2002-01-15 Jonathan Larmour <jlarmour@redhat.com>
90 * tests/malloc4.cxx (myrand): Fix so that it really treats the limit
93 2001-10-17 Jesper Skov <jskov@redhat.com>
95 * include/sepmetaimpl.inl: CYGINT_ISO_STRING_MEMFUNCS checks
98 2001-10-11 Jesper Skov <jskov@redhat.com>
100 * tests/testaux.hxx (new_thread): Fixed allocation: increase
101 counter before starting threads which have been allocated
104 2001-10-08 Jonathan Larmour <jlarmour@redhat.com>
106 * cdl/memalloc.cdl: Only build malloc.cxx and kapi.cxx when needed.
108 2001-09-20 Jesper Skov <jskov@redhat.com>
110 * tests/heaptest.c: Fix failure reporting.
112 2001-09-07 Jesper Skov <jskov@redhat.com>
114 * tests/heaptest.c: Added some extra output on failures.
116 2001-08-01 Jonathan Larmour <jlarmour@redhat.com>
118 * include/sepmetaimpl.inl: Define check_free_memdq and
119 check_alloced_memdq as inlines.
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.
125 Add CYGBLD_MEMALLOC_MALLOC_EXTERNAL_HEAP_H to allow external entities
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.
133 2001-07-18 Jonathan Larmour <jlarmour@redhat.com>
135 * src/heapgen.tcl: Use constructor priority of CYG_INIT_MEMALLOC
136 for heap objects in generated heaps.cxx.
138 2001-07-12 Jonathan Larmour <jlarmour@redhat.com>
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
145 2001-06-28 Jonathan Larmour <jlarmour@redhat.com>
147 * include/memjoin.inl (~Cyg_Mempool_Joined): free even when asserts
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.
155 2001-06-20 Jonathan Larmour <jlarmour@redhat.com>
157 * include/mvarimpl.inl (get_status): Correct calculation of maxfree
158 by taking into account metadata.
160 2001-06-18 Jonathan Larmour <jlarmour@redhat.com>
162 * cdl/memalloc.cdl: Add heaptest test.
164 * tests/heaptest.c: New test to do a memory check of all of heap.
166 * src/dlmalloc.cxx (get_status): Correct maxfree and totalfree
167 by accounting for block headers.
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
176 * tests/testaux.hxx (STACKSIZE): Double.
178 2001-05-02 Hugo Tyson <hmt@redhat.com>
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".
186 2001-05-01 Jonathan Larmour <jlarmour@redhat.com>
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.
193 2001-04-12 Hugo Tyson <hmt@redhat.com>
195 * include/memjoin.inl (resize_alloc): Fix typo so it compiles.
196 This only applies if you configure multiple heaps.
198 2001-03-21 Jonathan Larmour <jlarmour@redhat.com>
200 * cdl/memalloc.cdl: Specify explicit output file when preprocessing
201 heapgen.cpp. Improves portability.
203 2001-02-01 Jonathan Larmour <jlarmour@redhat.com>
205 * tests/malloc4.cxx: Use semaphores to sync startup order.
207 2000-11-28 Jonathan Larmour <jlarmour@redhat.com>
209 * src/heapgen.tcl: Don't use cygpath -s for now as not all cygwins
212 2000-11-25 Jonathan Larmour <jlarmour@redhat.com>
214 * cdl/memalloc.cdl: Make sure PWD variable doesn't clash with bash PWD
217 2000-11-24 Jonathan Larmour <jlarmour@redhat.com>
219 * cdl/memalloc.cdl: Invoke heapgen.tcl with build directory
220 surrounded by quotes (and do so in a portable way).
222 * src/heapgen.tcl: recurse back in on cygwin with correct quoting
223 to allow directories containing spaces. Also in a Solaris shell
226 2000-11-21 Jonathan Larmour <jlarmour@redhat.com>
228 * cdl/memalloc.cdl (CYGSEM_MEMALLOC_MALLOC_ZERO_RETURNS_NULL):
230 * src/malloc.cxx (malloc): Use above option to decide if NULL should
231 be returned on malloc(0).
233 2000-11-01 Jesper Skov <jskov@redhat.com>
235 * tests/realloc.c (main): Use reasonable factor when making too
236 large realloc (targets with 64MB would cause an overflow).
238 2000-10-31 Jonathan Larmour <jlarmour@redhat.com>
240 * tests/testaux.hxx: Prototype cyg_hal_invoke_constructors()
241 [ Forgot to check this in at the same time as below ]
243 2000-10-20 Jonathan Larmour <jlarmour@redhat.com>
245 * tests/dlmalloc1.cxx:
246 * tests/dlmalloc2.cxx:
252 Make sure default priority constructors have been invoked.
254 2000-09-14 Jesper Skov <jskov@redhat.com>
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.
261 2000-08-31 Jonathan Larmour <jlarmour@redhat.com>
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.
267 2000-08-09 Jonathan Larmour <jlarmour@redhat.co.uk>
269 * tests/malloc4.cxx (thrfree): Don't yield at loop end - actually delay
274 2000-08-08 Jonathan Larmour <jlarmour@redhat.co.uk>
276 * tests/malloc4.cxx: Make output more frequent
278 2000-08-04 Jonathan Larmour <jlarmour@redhat.co.uk>
280 * tests/dlmalloc1.cxx (STACKSIZE): Define larger than default.
282 2000-08-03 Jonathan Larmour <jlarmour@redhat.co.uk>
284 * include/dlmallocimpl.hxx (class Cyg_Mempool_dlmalloc_Implementation):
285 Ensure typedefs are public so dlmalloc.cxx can use them at outer level.
287 2000-08-02 Jonathan Larmour <jlarmour@redhat.co.uk>
289 * src/heapgen.tcl: Fix tclsh invocation quoting problems
291 2000-07-31 Jonathan Larmour <jlarmour@redhat.co.uk>
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
297 2000-07-26 Jonathan Larmour <jlarmour@redhat.co.uk>
299 * tests/malloc4.cxx: Call rand_r() rather than rand, and use a seed
302 2000-07-25 Jonathan Larmour <jlarmour@redhat.co.uk>
304 * tests/malloc4.cxx (thrfree): Get mem size here. Tidy output.
305 (thrmalloc): Get mem size in thrfree instead
307 * src/heapgen.tcl: Refine search for user-defined name to cope with
308 use of CYG_LABEL_DEFN macro
310 2000-07-19 Jonathan Larmour <jlarmour@redhat.co.uk>
312 * cdl/memalloc.cdl (CYGIMP_MEMALLOC_ALLOCATOR_DLMALLOC_SAFE_MULTIPLE):
315 * include/mvarimpl.inl (resize_alloc): Remember to adjust other
316 freelist entries when extending block
318 2000-07-04 Jonathan Larmour <jlarmour@redhat.co.uk>
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
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.
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.
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
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.
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.
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.
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 //===========================================================================