Re:Chris Lattner on garbage collection vs. Automatic Referen...
by hayley-patton on Saturday April 23, 2022 @09:54PM
(#31140565)
"A unified theory of garbage collection"?
Re:Chris Lattner on garbage collection vs. Automatic Referen...
by cmrdporcupine on Sunday April 24, 2022 @09:06AM
(#31143583)
Nice, will put this paper in my bookmarks for later read.
I feel like once you stop and think about it, the distinction between a 'tracing' GC and a 'non-tracing' GC is specious: To do its work at acquire and release, RC collector must in fact trace a tree of objects. It's just that the semantics of how this is declared might differ, or, more specifically the time(s) in which it does this work.
Re:Chris Lattner on garbage collection vs. Automatic Referen...
by hayley-patton on Sunday April 24, 2022 @08:39PM
(#31149644)
I think a fair part of the unified theory is that a tracing GC traces live objects, whereas a refcounting GC traces dead objects.
Re:Chris Lattner on garbage collection vs. Automatic Referen...
by cmrdporcupine on Sunday April 24, 2022 @11:24PM
(#31150473)
Upcounts trace live objects though. Just more incrementally.
Re:Chris Lattner on garbage collection vs. Automatic Referen...
by hayley-patton on Monday April 25, 2022 @02:15AM
(#31151187)
By "trace" I mean the act of consulting the state of an object, then recursively tracing pointers in the object. A tracing GC propagates a "known to be live" state through an object graph while doing a collection cycle, and a refcounting GC propagates a "known to be dead" state through an object graph, when RC drops to zero.
Re:Chris Lattner on garbage collection vs. Automatic Referen...
by hmlongco on Tuesday April 26, 2022 @06:41PM
(#31174069)
Umm... but isn't the refcounting GC more deterministic? If I create a chain of 10 object and then release the head, I run through 10 allocations and then 10 release cycles on those 10 objects. Period.
Re:Chris Lattner on garbage collection vs. Automatic Referen...
by melissalobos on Saturday April 23, 2022 @10:04PM
(#31140620)
Yes! Thank you, I couldn't think of the terms to search for to find this.
I am drawing a blank on google scholar at the moment, but I recall a very popular paper on exactly this topic of RC as the other side of Tracing GC.