Jemalloc 5.4 Released With Portability and Code Improvements
Tech
⚠ Single source
3d ago

Jemalloc 5.4 Released With Portability and Code Improvements

AI-synthesized · Bias removed · Facts only

Meta has released Jemalloc 5.4, the latest version of the memory allocator popular for server, high-performance computing (HPC), and desktop applications. The release focuses on addressing technical debt and improving portability.

Jemalloc 5.4 includes code refactoring, bug fixes, enhanced test coverage, and various code cleanups. New features include “EXTENT_ALLOC_FLAG_PINNED” for custom-extent allocation hooks, allowing developers to mark non-reclaimable mappings. The release also supports per-CPU arena selection via `thread.arena`, offering more granular control over memory allocation.

A significant aspect of Jemalloc 5.4 is the introduction of an OS abstraction layer. This layer handles platform-dependent code related to file/process I/O, time, synchronization, CPU management, virtual memory, `atfork`, error-handling, profiling, thread-yield, and configuration access, enhancing the allocator’s portability across different operating systems.

Additionally, Jemalloc 5.4 incorporates fixes for warnings generated by GCC 16 and includes several optimizations. Meta announced a renewed investment into Jemalloc earlier this year, leading to the increased development activity seen in this release.

Was this useful?

Read the original coverage

💬 Comments

📜 Comment Policy