This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: callback functionality for dyanmic memory allocation


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/  |
------------------------------------------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]