Registry / utility / jemalloc

jemalloc

JSON →
library5.3.0vcpkgunverified

jemalloc is a general purpose malloc(3) implementation that emphasizes fragmentation avoidance and scalable concurrency support

vcpkg install jemalloc
INSTALL
IMPORT
SIG · JEMALLOC
J
jemalloc
utilitycppv5.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

jemalloc/jemalloc.h
#include <jemalloc/jemalloc.h>

Allocate and free memory using jemalloc

#include <jemalloc/jemalloc.h> #include <cstdlib> int main() { void* p = malloc(1024); if (p) { free(p); return 0; } return 1; }
Debug
Known issues
gotchaReplacing system malloc with jemalloc may cause ABI issues if other libraries expect the system allocator.
fix
Use jemalloc only for specific allocations via je_malloc/je_free, or link with jemalloc as a replacement for the entire process.
affects: >=5.3.0
Upgrade
Version history
5.3.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources

No resource links recorded.

jemalloc — pip install jemalloc · libregistry