Trace Object Reference Chains to GC Roots

Discover why a specific object or set of objects is not garbage collected by listing all incoming references, which helps identify unintended retention paths and resolve memory leaks. The `referrers()` function is key here.

Sources

Open the full topic