Date: Tue, 05 Aug 2008 10:03:42 +0300 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: "Shyamal Shukla" <shyamalshukla@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: memory allocation with malloc Message-ID: <87abfshrjl.fsf@kobe.laptop> In-Reply-To: <87ej54hrrz.fsf@kobe.laptop> (Giorgos Keramidas's message of "Tue, 05 Aug 2008 09:58:40 %2B0300") References: <eb50c26c0808040629w252647f1m756f43a7aeba1ff9@mail.gmail.com> <eb50c26c0808042316yde39f60r7e68a89fb2cef9c6@mail.gmail.com> <87ej54hrrz.fsf@kobe.laptop>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 05 Aug 2008 09:58:40 +0300, Giorgos Keramidas <keramida@ceid.upatras.gr> wrote: > On Tue, 5 Aug 2008 11:46:06 +0530, "Shyamal Shukla" <shyamalshukla@gmail.com> wrote: >> However, this does not happen. Can someone please correct my >> understanding and provide me with a reference to the working of >> malloc() and free()? > > That's because the original assumption is false. [...] I forgot to attach the link to the jemalloc paper, apologies. Here it is: http://people.freebsd.org/~jasone/jemalloc/bsdcan2006/jemalloc.pdf This describes how jemalloc works. This isn't a detailed line by line walk-through of the source, but it should provide a good starting point. Then you can always read the source of BSD malloc() at: http://svn.freebsd.org/viewvc/base/head/lib/libc/stdlib/malloc.c?view=log HTH, Giorgos
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87abfshrjl.fsf>