4 ms·
IIRC jemalloc has per-thread pools & caches which I assume can be accessed locklessly. I don't think the entire thing is lossless, and neither is tcmalloc. And
by masklinn 9y ago
IIRC jemalloc has per-thread pools & caches which I assume can be accessed locklessly. I don't think the entire thing is lossless, and neither is tcmalloc. And as far as I know these are the only significantly thread-aware allocators (or at least production-ready ones).
- bonzini 9y agoglibc has also grown a good thread-aware allocator, though that is more recent than tcmalloc or jemalloc.