Reading: cyclic GC, yes, the section I linked explicitly discusses that problem, and how it’s solved.