lair
lair copied to clipboard
★Garbage Collection★
- Create simple userland allocator that everything goes through to track objects
- Create
vector_remove
function. - Create GC graph node struct with:
- Pointer to the lair value
- Generation enum
- Vector of parent pointers to other graph nodes (things that own this node). Once you run out of parent pointers, delete yourself.
- Vector of child pointers as well
- All deletions should cascade. cc @lykkin