cell-gc
cell-gc copied to clipboard
Support owned heaps
There should be API to let a user store heaps in data structures, move a heap from one thread to another, etc.
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>.
Still open until #29 is fixed.