3 ms·
I've definitely run into accidentally reference cycles with `Arc` in concurrent Rust code in production before (due to weak references essentially baton-passing
by saghm 5y ago
I've definitely run into accidentally reference cycles with `Arc` in concurrent Rust code in production before (due to weak references essentially baton-passing the singular strong reference count to each other before getting dropped. This is a bit of a different kind of memory leak, and even having run into it I'd strongly prefer to write any concurrent code in Rust over any other language I've tried given the choice, but I'd be hesitant to say that Rust guarantees that nothing will leak if only to keep people from getting complacent.