Understanding glibc malloc
sploitfun.wordpress.com
Understanding glibc malloc
1–5 of 5 posts
Re: Understanding glibc malloc
#2Re: Understanding glibc malloc
#3BSDcan paper: http://people.freebsd.org/~jasone/jemalloc/bsdcan2006/jemall...; Facebook Engineering post: https://www.facebook.com/notes/facebook-engineering/scalable....
The NetBSD version, though probably not the most up to date, is the easiest to understand, being in a single file: http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/stdlib/jema....
Re: Understanding glibc malloc
#4Doug Lea's dlmalloc implementation is the basis for GCC's ptmalloc, IIRC. His writeup on the topic is a wonderful read; and for the code itself, it is beautifully organised and well commented. http://g.oswego.edu/dl/html/malloc.html
Re: Understanding glibc malloc
#5jemalloc is also pretty well-documented, though it's relatively big for a malloc implementation. BSDcan paper: http://people.freebsd.org/~jasone/jemalloc/bsdcan2006/jemall... ; Facebook Engineering post: https://www.facebook.com/notes/facebook-engineering/scalable... . The NetBSD version, though probably not the most up to date, is the easiest to understand, being in a single file: http://cvsweb.netbsd.org/bsdweb.cgi…