jemallocator
jemallocator copied to clipboard
Rust allocator using jemalloc as a backend
Those are useful and hard to find if you don’t read READMEs.
Seems that this crate is a bit behind the latest version of [jemalloc](https://github.com/jemalloc/jemalloc/tree/5.2.1). Is there something blocking the update from 5.1 -> 5.2.1?
I took an existing program, added a dependency on `jemallocator-global` in its Cargo.toml, built it with `--release`, and ran it under a profiler (Instruments). Observed: The profiler found stacks under...
``` cargo:rerun-if-changed=../jemalloc-sys/src/lib.rs OPT_LEVEL = Some("0") HOST = Some("x86_64-apple-darwin") CC_x86_64-apple-darwin = None CC_x86_64_apple_darwin = None HOST_CC = None CC = None CFLAGS_x86_64-apple-darwin = None CFLAGS_x86_64_apple_darwin = None HOST_CFLAGS = None CFLAGS...
We should properly error about this in the `build.rs`, or at least produce a BIG warning that this target is not supported.
Hi Debug feature is really useful. However looks like cargo currently does not support enabling/disabling features based on debug/release build mode. I'd like to have some workaround like some feature...
@alexcrichton `malloc`, `calloc`, etc. do not return a `noalias` pointer, I think they should use the `#[allocator]` attribute but that's currently super unstable. Any ideas ?