Re:For Better Computing, Liberate CPUs from Garbage Collection
by zZorgz on Thursday May 09, 2019 @10:03AM
(#19868367)
It depends who you ask. In my point of view, "reference counting" is a strategy that has nothing inherently to do with memory management and can even be manual instead of automatic. GC as the name implies should involve a collector of sorts.
Re:For Better Computing, Liberate CPUs from Garbage Collection
by klyrs on Thursday May 09, 2019 @12:53PM
(#19869898)
Plain old refcounting cannot resolve circular references, which are inevitably leaked. To avoid leaks, most refcounting garbage collectors have a heuristic to occasionally run traces to clear out the cruft.
However, I agree, "free()" is not garbage collection, but rather a form of memory management, of which garbage collection is a subset, and manual (free) is another.