memory allocation with malloc
Giorgos Keramidas
keramida at ceid.upatras.gr
Tue Aug 5 07:03:54 UTC 2008
On Tue, 05 Aug 2008 09:58:40 +0300, Giorgos Keramidas <keramida at ceid.upatras.gr> wrote:
> On Tue, 5 Aug 2008 11:46:06 +0530, "Shyamal Shukla" <shyamalshukla at 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
More information about the freebsd-questions
mailing list