Mail Archives: djgpp-workers/1997/11/12/09:55:40
> AFAIK, our `sbrk' doesn't release memory when called with a negative
> argument.
It does not return memory to DPMI, ever, but a negative sbrk() should
put memory back in the internal sbrk() pool, if I remember correctly.
This feature is useful when using the unixy sbrk to allocate a big
chunk, decrease it's usage, and leave internal extra around so you can
still use near pointers without fear of a single malloc() call someplace
blowing you out. So, non-release is a feature :-)
- Raw text -