go top

死引用

网络释义

  Dead Reference

队列里面的时候,我们可以知道它所引用的哪些对对象是死引用(Dead Reference)。而这种引用和弱引用的区别在于: 弱引用(WeakReference)是在对象不可达的时候尽快进入ReferenceQueue队列的,在finalizati...

基于32个网页-相关网页

双语例句

  • 标记阶段最后也没有标记的对象是应用程序不可获得的对象(死对象),因为不存在从根集经过任何引用序列找到这些对象的路径。

    Objects that are unmarked at the end of the mark phase are unreachable by the application (dead) because there's no path from the root set through any series of references to find them.

    youdao

  • 可以通过周期性地扫描Map,对每一个弱引用调用get,并在get返回null时删除那个映射而消除死映射。

    Dead mappings could be eliminated by periodically scanning the map, calling get on each weak reference, and removing the mapping if get returns null.

    youdao

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

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

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