issues
search
qpfiffer
/
lair
A small Den implementation written in C.
MIT License
19
stars
5
forks
source link
★Garbage Collection★
#12
Open
qpfiffer
opened
8 years ago
qpfiffer
commented
8 years ago
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
vector_remove
function.