On 12/20/2017 09:05 AM, Tony wrote:

> how a garbage collector determines that there usage is just via
> each other and that they can be deleted.

Similar to the PHP link Dgame posted, the GC looks for live objects by starting from roots (essentially, the objects on the stack and the static variables). Even if there are islands of objects referencing others in self or other islands, as long as they are not reachable from any root, they are gone.

Ali

Reply via email to