Hacker News new | ask | show | jobs
by int_19h 2328 days ago
How do you know that they exist, if you're not scanning that memory?
1 comments

The data structure code can take care of this by registering GC roots with the garbage collector (and de-registering them if an external reference changes). It's no different in principle than any other smart pointer.