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

Support owned heaps #7

Open
jorendorff opened this issue Feb 8, 2017 · 2 comments
Open

Support owned heaps #7

jorendorff opened this issue Feb 8, 2017 · 2 comments

Comments

@jorendorff
Copy link
Owner

There should be API to let a user store heaps in data structures, move a heap from one thread to another, etc.

@jorendorff
Copy link
Owner Author

Reopening. This is incomplete as long as there's no way to keep a ref alive across sessions.

Right now, when you leave a session, everything in the heap is garbage, so keeping the heap alive is useless.

We need a way for a session to say, ok, this GcRef<'h, T> points to something I want to come back to later, save that as a DormantGCRef<T> or something, and in a later session turn it back into a normal GcRef<'h2, T>.

@jorendorff
Copy link
Owner Author

Still open until #29 is fixed.

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

1 participant