Re:Reference count, don't garbage collect
by viraptor on Friday July 29, 2022 @11:57PM
(#32284156)
That's not enough. Imagine a circular linked list. GC looks at an outside pointer to item A in it. Now another thread removes A from the list and moves the outside pointer to the next item. After that, GC would see all items in the list not referenced by anything (apart from the cycle).
[ Parent
| on HN ]