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

★Garbage Collection★ #12

Open
qpfiffer opened this issue Jan 2, 2016 · 0 comments
Open

★Garbage Collection★ #12

qpfiffer opened this issue Jan 2, 2016 · 0 comments

Comments

@qpfiffer
Copy link
Owner

qpfiffer commented Jan 2, 2016

  • 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
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