Date: Tue, 27 Feb 2001 22:14:56 +0000 From: Tony Finch <dot@dotat.at> To: Maxime Henrion <mux@qualys.com> Cc: hackers@freebsd.org Subject: Re: [hackers] Re: Setting memory allocators for library functions. Message-ID: <20010227221456.O609@hand.dotat.at> In-Reply-To: <20010227222454.G345@nebula.cybercable.fr> References: <20010227202234.K609@hand.dotat.at> <200102272044.f1RKi0n13690@chopper.Poohsticks.ORG> <20010227211215.M609@hand.dotat.at> <20010227211215.M609@hand.dotat.at>; <20010227222454.G345@nebula.cybercable.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
Maxime Henrion <mux@qualys.com> wrote: >Tony Finch wrote: >> >> If it's available at all, mprotect() is often limited to memory >> obtained with mmap(), i.e. not malloc(). Not great for portability. > >FreeBSD malloc() calls mmap() as AFAIK many (if not all) malloc() >implementations. FreeBSD malloc() uses sbrk() for memory that it returns to the application and mmap() for book-keeping memory (the page index). Tony. -- f.a.n.finch fanf@covalent.net dot@dotat.at GERMAN BIGHT: SOUTHEAST 4 OR 5 BACKING NORTHEAST 5 OR 6. SLEET. MODERATE OR POOR. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010227221456.O609>