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. You could use something similar to tracing, where each task switch lets a global variable know which task is currently running. It could be a thread-local to reduce contention. Then a global allocator would always know which task (if any) is the one allocating.