This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Re: callback functionality for dyanmic memory allocation
- From: Gary Thomas <gthomas at ecoscentric dot com>
- To: ecos at navosha dot com
- Cc: eCos patches <ecos-patches at sources dot redhat dot com>
- Date: 02 Nov 2002 07:00:45 -0700
- Subject: Re: callback functionality for dyanmic memory allocation
- References: <200211020425.16935.ecos@navosha.com>
On Fri, 2002-11-01 at 21:25, NavEcos wrote:
> The following patches allows a user to track:
>
> 1) heap creation
> 2) heap destruction
> 3) allocation/freeing of dynamic memory
> and
> 4) reallocation of dynamic memory (i.e. realloc functionality)
>
> Included is the CDL to control it. By default it is turned off. There will
> be a performance penalty to turn on the logging ability even if you do not
> use it since a pointer must be checked (the callback).
>
But surely not if it's disabled by CDL?
Also, how about writing a test or two? These are the best examples
we can provide the public of anything that gets added.
Thanks. (I'll let Jonathan comment on the patch as a whole)
--
------------------------------------------------------------
Gary Thomas |
eCosCentric, Ltd. |
+1 (970) 229-1963 | eCos & RedBoot experts
gthomas@ecoscentric.com |
http://www.ecoscentric.com/ |
------------------------------------------------------------