Expand description
Bindings for jemalloc as an allocator
This crate provides bindings to jemalloc as a memory allocator for Rust.
This crate mainly exports, one type, Jemalloc
, which implements the
GlobalAlloc
trait and optionally the Alloc
trait,
and is suitable both as a memory allocator and as a global allocator.
Modules§
- ffi 🔒Raw bindings to jemalloc
Macros§
- assume 🔒
Structs§
- Handle to the jemalloc allocator
Constants§
Functions§
- If
align
is less than_Alignof(max_align_t)
, and if the requested allocationsize
is larger than the alignment, we are guaranteed to get a suitably aligned allocation by default, without passing extra flags, and this function returns0
. - Return the usable size of the allocation pointed to by ptr.