Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Upcounts trace live objects though. Just more incrementally.


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.


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: