4 ms·
Having a GC can make the implementation of lock-free data structures significantly easier. Without GC you effectively end up implementing a sort of very special
by nikic 11y ago
Having a GC can make the implementation of lock-free data structures significantly easier. Without GC you effectively end up implementing a sort of very specialized garbage collection scheme for the data structure.
This is a very nice article about using epoch-based memory reclamation for lock-free datastructures in Rust: https://aturon.github.io/blog/2015/08/27/epoch/ https://aturon.github.io/blog/2015/08/27/epoch/