Date: Sun, 21 Sep 1997 18:18:23 +0200 (MET DST) From: Eivind Eklund <perhaps@yes.no> To: Poul-Henning Kamp <phk@critter.freebsd.dk> Cc: gram@cdsec.com, hackers@FreeBSD.ORG Subject: Re: Bug in malloc/free (was: Memory leak in getservbyXXX?) Message-ID: <199709211618.SAA20155@bitbox.follo.net> In-Reply-To: Poul-Henning Kamp's message of Thu, 18 Sep 1997 20:51:13 %2B0200 References: <199709181811.MAA13376@rocky.mt.sri.com> <10897.874608673@critter.freebsd.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
> > In message <199709181811.MAA13376@rocky.mt.sri.com>, Nate Williams writes: > >Poul-Henning Kamp writes: > No, all you have to do is to make each allocation have it's own set of > pages, munmap them when free is called and never use those pages again. > > You run out of address space really fast, and it is slow, but it works. efence does this, if you use the correct option. I produced an URL in an earlier message in this thread. BTW: Would it be an idea to add some form of optional loop checking (or possibly even a full invariant) to phkmalloc, if it isn't there already? Both double-linked and single-linked lists are trivial to check for loops, at least. Eivind.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709211618.SAA20155>