If the garbage collector discovers an object that is weakly reachable, the following occurs.
如果垃圾收集器发现了弱可及对象,就会出现下列情况。
Note, however, that it may take multiple runs of the garbage collector before it finds and frees a weakly reachable object.
然而,请注意,垃圾收集器可能要运行多次才能找到并释放弱可及对象。
After processing the soft references, the set of weakly reachable objects is identified — objects for which no strong or soft references exist.
处理软引用之后,弱可及对象的集合被识别——这样的对象上不存在强引用或软引用。
应用推荐