52 points · by grep_it · 6d ago · 32 comments
[1] https://people.freebsd.org/~jasone/jemalloc/bsdcan2006/jemal...
[2] https://www.microsoft.com/en-us/research/wp-content/uploads/...
> Major uses of jemalloc include:
FreeBSD NetBSD Mozilla Firefox Varnish Cassandra Redis hhvm MariaDB Aerospike Android
It was the default global memory allocator implementation for rust when it started (until 8 years ago https://www.reddit.com/r/rust/s/g6nwaGAdGA). Firefox adopted jemalloc on windows and later diverged (https://searchfox.org/firefox-main/source/memory/build/mozje...).
Hopefully not on the alloc and free paths
0: https://github.com/memcached/memcached/blob/master/slabs.c
Also it’s public domain.
But there are definitely some that get a full name - if only to disambiguate them.
It might be because I'm reading beginners references now and again but off the top of my head Robert Tarjan's strongly connected components algorithm is one example, and going back to Dijkstra his shortest path algorithm is usually just called "Dijkstra's algorithm", but his shunting-yard algorithm is often fully qualified with his complete name.
And indeed, Wikipedia says he’s “Douglas S Lea” (https://en.wikipedia.org/wiki/Doug_Lea)
I recently switched to using TLSF for that: https://github.com/ncruces/wasm2go/blob/main/libc-gen/c/mall...
Android up to v4.1 bionic is based on Doug Lea's dlmalloc v2.8.3
Android v4.2 upgraded to dlmalloc v2.8.6
Android v5.0 transitioned to jemalloc.
Modern Android is based on jemalloc or Scudo, based on build configuration.
Android never used original dlmalloc.