Rationale for Soft-/Weak-/PhantomReferences clearing references to objects which have reference to tracked object
问题 The documentation for Soft-, Weak- and PhantomReferences all include a line simiar to the following (taken from PhantomReference ): At that time it will atomically clear all phantom references to that object and all phantom references to any other phantom-reachable objects from which that object is reachable. The part which is confusing me is the one about the other phantom-reachable objects. If I understand it correctly this describes this case: Objects: A B References: -> : Strong reference