Re: [gtk-list] Re: Hash functions and memory?




Hello Lars,

[snip]
> This was up a couple of month ago. Basicly, glib aloc internal memory
> that is used for internal purpose. It do reuse that memory intrenal
> but do not release (all of) it to the system.


	Yeah, apparently this is a FAQ of sorts.  (whoops).  I didn't
look hard enough through the mailing list archive. :-(

> 
> That makes it hard to verify if You have memoryleaks. But it is
> possably to (thru compile time options) get status reports from
> glib. From thes reports You can calculate hov much leak You
> shuld expect an compare that to what ccmalloc reports.


	I enabled memory profiling, recompiled, reinstalled glib and then
called g_mem_profile() and it outputted how much memory is in use and that
number agrees with what ccmalloc thinks "leaked".  So now I have a way of
watching what glib is using and what my programs are leaking. :)

	Thanks for the info.  Most enlightening. :-)

[snip]

								-Ales
--
   v      v
Ales V. Hvezda
ahvezda@geda.seul.org
http://www.geda.seul.org/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]