Comments (3)
I believe you're correct - dead Gc
s can only be created by attempting to access a Gc
during its Drop
impl. I'll likely rewrite the code for handling dead Gc
s in the near future.
Thanks for the recommendation on try_deref
. I'll include it in the next release.
from dumpster.
I just finished implementing try_deref
and try_clone
on both Gc
s. Feel free to take a look. I'll publish this version soon(ish), whenever I feel like I've ironed out everything.
from dumpster.
Looks good to me!
I had one observation: should Clone
on a dead Gc
give you another dead Gc
instead? Having Clone
panic seems rather poor b- ut on the other hand propagating the explosive Gc
seems worse. So my feeling is that you've done it the best way but I thought I'd mention it.
from dumpster.
Related Issues (10)
- Unsoundness when dropping cycles with custom `Drop` implementation HOT 6
- Just props for the crate, nothing else :) HOT 1
- Serde feature HOT 1
- Consider switching to LGPL HOT 11
- Consider renaming to gcc (garbage collected cell) HOT 1
- Map collections HOT 2
- Add Gc::as_ptr by analogy with Rc::as_ptr HOT 1
- Implement PartialEq for Gc HOT 2
- Implement Collectable for UnsafeCell HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dumpster.