Re: [Vala] Help with Memory Leak
- From: Nor Jaidi Tuah <norjaidi tuah ubd edu bn>
- To: <vala-list gnome org>
- Subject: Re: [Vala] Help with Memory Leak
- Date: Sat, 14 Jul 2012 07:54:42 +0800
If this is really due to heap fragmentation, then there
must be a bug in the underlying malloc and free. I can't
imagine the memory keeps growing when all the dynamics are
due to getting and freeing memory for labels between
10 to 36 characters in length. Initially, we will create
useless fragments. But, due to the pigeon-hole principle
(http://en.wikipedia.org/wiki/Pigeonhole_principle)
those fragments cannot remain entirely un-recyclable
even if "free" is very unthinkably simplistic and does not
merge adjacent fragments.
After thinking it further, memory usage may indeed
keep growing if "free" is very simplistic and
does not merge adjacent fragments.
hand
Nor Jaidi Tuah
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]