[lkml]   [1997]   [Jan]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Memory allocation errors
> >From info received here, I decided to make my own check of a possible
> memory allocation bug. I can confirm that the bug does, indeed, exist.

libc malloc does not return memory to the kernel instead it uses a local
pool. Thats standard for almost all Unix libc malloc implementations as
very few applications have the property you describe and the malloc heap
tends to have freed holes in it not a single giant free chunk.

You can use mmap() to get a block of memory you can hand back if you wish

 \ /
  Last update: 2005-03-22 13:38    [W:0.026 / U:0.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site