Unofficial Hacker News companion — get notified on comment replies, and more.

The state of Rust allocators in 2026: stabilised (opens external site)

217 points by fanf2 4 days ago | cetra3.github.io | 90 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (1)

  1. That is still 100% true for jemalloc you just misunderstood what OP said. You can’t allocate using jemalloc and deallocate using mimalloc. Which is what could happen if you have custom global allocators per thread.

    Btw nothing stops you from implanting an allocators that has TLS state and counters. You can even have a global allocators that counts per thread and delicates to an arbitrary allocator that may not have those counters.