Hacker News new | ask | show | jobs
by michalsustr 90 days ago
Very interesting! Im curious, how does this work, it binary patches glibc allocator? AFAIK custom allocators are only in nightly and require generics in the form Vec<T, A>
1 comments

No, it uses LD_PRELOAD symbol interception, not binary patching.

This isn't the Rust Allocator in nightly. This is a drop-in replacement for the system's malloc implementation.

Think jemalloc, tcmalloc and mimalloc.