4 ms·
Sorry, but I just wonder wouldn't this pointer to self structure prevent garbage collection?
by wshuang 12y ago
Sorry, but I just wonder wouldn't this pointer to self structure prevent garbage collection?
- davekeck 12y agoReference cycles aren't a problem for GCs because any objects that aren't reachable from a root set of nodes are considered garbage and get collected. (I only read part of the article, but hopefully that answers your question...)