memory leak detection patch (usable for

Oliver Stieber oliver_stieber at yahoo.co.uk
Fri Sep 23 14:00:03 CDT 2005


--- Detlef Riekenberg <wine.dev at web.de> wrote:

> Hi Mike
> 
> > This patch is written for MSI, but could be adapted to other code.  It 
> > keeps a linked list of allocated memory and removes free'd memory from 
> > the list.
> 
> Nice Hint.
> I will reuse that, while working on the Printing subsystem.
> 
> > so hopefully somebody else will find it useful too.
> 
> should we implement this for all with something like:
> 
> WINEHEAP_DEFINES(prefix)
> wineheap_alloc
> wineheap_realloc
> .
> .
> .
> wineheap_dump_allocated_memory

There's a possibility that WINEs heap management is going to be improved at some point by keeping
all small allocations together and caching them to improve performance and reduce fragmentation.
I'm not sure how much this is vaporware but it could be fairy well intergrated with some kind of
memory tracking system.

Oliver
> 
> 
> 
> 
> -- 
> By By ...
>       ... Detlef
> 
> 
> 
> 




		
___________________________________________________________ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com



More information about the wine-devel mailing list