Others / shredder

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

AtomicGc design and implementation #48

Closed Others closed 4 years ago

Others commented 4 years ago

Adds Atomic support to shredder! The atomic operations should be fairly fast, but obviously need to do some Gc related book keeping. Also they block if collection is happening, which may be inevitible. Perhaps we could lift this limitation for reads?

I think this is the right design--I've thought a lot about other ways to do this and this was the only fruitful one.

Still missing docs and tests, but wanted to put this up to solicit feedback.

Others commented 4 years ago

Resolves #36

@jrmuizel you opened that issue--is this the sort of API/performance characteristics you were looking for?

Others commented 4 years ago

I'm beginning to get concerned about all the complexity in collector/mod.rs (especially the collect method). That will need cleaned up at some point.

jrmuizel commented 4 years ago

The API looks good to me.