3 ms·
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'
by zozbot234 7y 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.