Others / shredder

Garbage collected smart pointers for Rust
MIT License
266 stars 9 forks source link

Implement a moving/compacting collector #41

Open Others opened 4 years ago

Others commented 4 years ago

Since we have the whole GcHandle system, we have a nice way of figuring out if something can be moved or not. Could we exploit this to create a compacting collector somehow?

We'd need to be careful, because the worst case is probably someone holding a GcHandle forever. (Meaning we'd need to keep that data live.)

Note: