Registry / utility / tikv-jemalloc-sys

tikv-jemalloc-sys

JSON →
library0.7.1+5.3.1-0-g81034ce1f1373e37dc865038e1bc8eeecf559ce8rscratesunverified

Rust FFI bindings to the jemalloc memory allocator, used by TiKV.

# Cargo.toml [dependencies] tikv-jemalloc-sys = "0.7.1+5.3.1-0-g81034ce1f1373e37dc865038e1bc8eeecf559ce8"
INSTALL
IMPORT
SIG · TIKV-JEMALLOC-SYS
T
tikv-jemalloc-sys
utilityrustv0.7.1+5.3.1-0-g81034ce1f1373e37dc865038e1bc8eeecf559ce8
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.

malloc
use tikv_jemalloc_sys::malloc;

Allocates memory using jemalloc.

use tikv_jemalloc_sys::malloc; fn main() { unsafe { let ptr = malloc(100); println!("Allocated memory at {:?}", ptr); } }
Debug
Known issues
gotchaDirect use of raw FFI functions is unsafe; prefer higher-level jemallocator crate.
fix
Use the jemallocator crate for safe global allocator setup.
affects: >=0.0.0
Upgrade
Version history
0.7.1+5.3.1-0-g81034ce1f1373e37dc865038e1bc8eeecf559ce8latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
tikv-jemalloc-sys — cargo add tikv-jemalloc-sys · libregistry