linear-malloc 0.1.0

An ultra simple single-threaded linear allocator
Documentation
  • Coverage
  • 20%
    1 out of 5 items documented0 out of 4 items with examples
  • Size
  • Source code size: 4.27 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.13 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • madsmtm/linear-malloc
    1 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • madsmtm

linear-malloc

Latest version Documentation

DISCLAIMER! This is a quick hack I did to test things. Don't use!

An ultra simple single-threaded linear allocator.

Useful to make the output of applications running under Cachegrind/Callgrind more stable (since it doesn't try to do the clever optimizations that the system allocator does).

Usage

Linux:

cargo build
LD_PRELOAD=./target/debug/liblinear_malloc.so your-binary

macOS:

cargo build
DYLD_INSERT_LIBRARIES=./target/debug/liblinear_malloc.dylib DYLD_FORCE_FLAT_NAMESPACE=1 your-binary

Acknowledgements

Got some useful info about allocation strategies from @mtrebi's memory-allocators, and @ezrosent's "Allocators in Rust" was a good source to help set up the basic framework.