Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GC object with self reference #69

Closed
oovm opened this issue Sep 29, 2021 · 2 comments
Closed

GC object with self reference #69

oovm opened this issue Sep 29, 2021 · 2 comments

Comments

@oovm
Copy link
Contributor

oovm commented Sep 29, 2021

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
Copy link
Owner

Others commented Sep 29, 2021

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
Copy link
Owner

Others commented Oct 24, 2021

See #70

@oovm oovm closed this as completed Oct 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants