From: sandmann AT clio DOT rice DOT edu (Charles Sandmann) Message-Id: <9711121456.AA14120@clio.rice.edu> Subject: Re: malloc() To: eliz AT is DOT elta DOT co DOT il (Eli Zaretskii) Date: Wed, 12 Nov 1997 08:56:38 -0600 (CST) Cc: djgpp-workers AT delorie DOT com In-Reply-To: from "Eli Zaretskii" at Nov 12, 97 02:46:14 pm Content-Type: text Precedence: bulk > 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 :-)