The kernel radar: folios, multi-generational LRU, and Rust
The kernel radar: folios, multi-generational LRU, and Rust
Posted Jan 21, 2022 20:45 UTC (Fri) by atnot (guest, #124910)In reply to: The kernel radar: folios, multi-generational LRU, and Rust by pbonzini
Parent article: The kernel radar: folios, multi-generational LRU, and Rust
I'm not sure that's really much less ergonomic than C? You still have the same issue there. Once you put things into multiple collections you need some way of knowing whether you should free items when removing them. That's true regardless of whether the compiler notices it.
If you don't know whether it's the last reference, you need some kind of reference count and if you do you'll need to prove it, either to yourself or preferably some program. It's not much different.
