Tracing GCs: Inherently Immune to Circular References

Unlike reference counting, tracing garbage collectors (e.g., mark-and-sweep in Java or C#) inherently handle circular references by determining object reachability from 'root' objects, collecting any cycle that is no longer accessible from the program's active state.

Sources

Open the full topic