cell-gc icon indicating copy to clipboard operation
cell-gc copied to clipboard

Support owned heaps

Open jorendorff opened this issue 8 years ago • 2 comments

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

jorendorff avatar Feb 08 '17 16:02 jorendorff

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 avatar Jun 27 '17 16:06 jorendorff

Still open until #29 is fixed.

jorendorff avatar Jul 26 '17 14:07 jorendorff