The tracing collector adopts a centralized management mode to globally record the reference status between objects. During execution, the starting point is the GCRoots objects in some columns, search all reference chains from these nodes. When an object to GCRoots does not have any reference chains, this object is unavailable. Tracking collector
The tracing collector adopts a centralized management mode to globally record the reference status between objects. During execution, the tracing collector uses some column GC Roots objects as the starting point, search for all reference chains from these nodes. If an object to GC Roots does not have any reference chains, this object is unavailable.
Objects Object6, Object7, and Object8 are referenced by each other, but their GC Roots are not reachable, so they will be regarded as recyclable objects.