Y
Hacker News
new
|
ask
|
show
|
jobs
by
zozbot234
2328 days ago
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.