Crate jevmalloc

Crate jevmalloc 

Source
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§

ctl
jemalloc control and introspection.
ffi
Raw bindings to jemalloc
hook

Structs§

Jemalloc
Handle to the jemalloc allocator

Constants§

QUANTUM

Functions§

adjust_layout
Adjust the layout’s size and alignment based on platform requirements prior to calls into jemalloc.
usable_size
Return the usable size of the allocation pointed to by ptr.