Others / shredder

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

GC object with self reference #69

Closed oovm closed 2 years ago

oovm commented 3 years ago

In my using case, I need certain objects to hold a reference to itself, and I need a convenient api to create such objects.

May refer to: Arc::new_cyclic

Others commented 3 years ago

I'm looking into this. Seems slightly tricky, but doable if we start the Gc in a deallocated state. Just need to be careful not to create potential data races

Others commented 3 years ago

See #70