Re: [gtk-list] Re: GAllocator vs. g_free (was: GMemChunk for skiplists)
- From: Derek Simkowiak <dereks kd-dev com>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: GAllocator vs. g_free (was: GMemChunk for skiplists)
- Date: Thu, 9 Mar 2000 15:20:05 -0800 (PST)
> > I have recently learned that free() (or g_free() ) does not return
> > the freed memory to the operating system until after the program is
> > killed.
[...]
> This depends on whether your malloc package is smart enough to call sbrk()
> to release totally unused pages, and whether your operating system
> understands how to do it.
Got it now. From what I understand, GNU free() will return the
memory to Linux if the size of the malloc()ed RAM is much larger than a
page size, otherwise it lets your program hang on to it.
I have received many detailed responses to my RAM questions and I
sincerely appreciate it. I wasn't expecting to get so many
responses--since this is really offtopic, I'd like to ask that any future
responses be sent to me privately (to kill this offtopic thread).
Thank You,
Derek Simkowiak
dereks@kd-dev.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]