Re:Fundamentals of Garbage Collection
by Findecanor on Saturday July 12, 2025 @09:48AM
(#44542059)
That would still be tracing. The problem is that if there is a cycle, the reference count would be too high, and you'd not detect that the object should be reclaimed.
I was replying to the OP:
> "but I was recently wondering if it would be possible to detect and deny pointer cycles in a language in an efficient way"
...not whatever issue you are worried about.
But if it was a simple scripting language and you needed that constraint, it’s relativity easy to implement.