• 关键处在于,垃圾收集器运行会(也能不会)释放对象

    The key point is that when the garbage collector runs, it may or may not free an object that is softly reachable.

    youdao

  • 对象(softlyreachable):不是可及对象并且能够通过引用访问对象

    Softly reachable: an object that is not strongly reachable and can be accessed through a soft reference.

    youdao

  • 对象(weaklyreachable):不是可及对象也不是软可及对象并且能够通过引用访问对象

    Weakly reachable: an object that is not strongly or softly reachable and can be accessed through a weak reference.

    youdao

  • 对象(phantomly reachable):不是可及对象软可及对象,也不是可及对象已经结束的,通过引用访问对象

    Phantomly reachable: an object that is not strongly, softly, or weakly reachable, has been finalized, and can be accessed through a phantom reference.

    youdao

  • 跟踪之后垃圾收集器就识别对象——这些对象除了引用外,没有任何强引用。

    After the trace, the collector identifies the softly reachable objectsthese objects for which no strong references exist but soft references do.

    youdao

  • 处理引用之后可及对象集合识别——这样对象存在引用引用。

    After processing the soft references, the set of weakly reachable objects is identified — objects for which no strong or soft references exist.

    youdao

  • 处理引用之后可及对象集合识别——这样对象存在引用引用。

    After processing the soft references, the set of weakly reachable objects is identified — objects for which no strong or soft references exist.

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定