• Another subclass of reference, soft references, fulfills a different but related purpose.

    Reference的另一个子类——软引用——可满足一个不同却相关的目的。

    youdao

  • Similarly, soft references are also often used in GUI applications for caching bitmap graphics.

    类似地,软引用也经常用于GUI应用程序中,用于缓存位图图形。

    youdao

  • As the following example shows, weak references and soft references are powerful tools for fixing memory leaks.

    如以下示例所示,弱引用和软引用都是解决内存泄露的强大工具。

    youdao

  • If you need to cache more than a single object, you might use a Map, but you have a choice as to how to employ soft references.

    如果需要缓存不止一个对象,您可以使用一个Map,但是可以选择如何使用软引用。

    youdao

  • Weak and soft references both extend the abstract reference class (as do phantom references, which will be discussed in a future article).

    弱引用和软引用都扩展了抽象的reference类(虚引用(phantomreferences)也一样,这将在以后的文章中介绍)。

    youdao

  • When an object holds only soft references, GC collects it only if there is not enough memory.

    当一个对象只具有软引用时,垃圾回收器只在内存不足的时候才回收它。

    youdao

  • Soft Reference . When an object holds only soft references, GC collects it only if there is not enough memory.

    软引用 。当一个对象只具有软引用时,垃圾回收器只在内存不足的时候才回收它。

    youdao

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

    处理软引用之后,弱可及对象的集合被识别——这样的对象上不存在强引用或软引用。

    youdao

  • Weak references are sometimes mistakenly used instead of soft references for building caches, but this will result in poor caching performance.

    弱引用有时会错误地用于取代软引用,用于构建缓存,但是这会导致差的缓存性能。

    youdao

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

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

    youdao

  • Reference queues are not as useful with soft references as with weak references, but they could be used to raise a management alert that the application is starting to run low on memory.

    引用队列对于软引用来说,没有对弱引用那么有用,但是它们可以用于发出管理警报,说明应用程序开始缺少内存。

    youdao

  • The idea of a SoftReference is that you hold a reference to an object with the guarantee that all of your soft references will be cleared before the JVM reports an out-of-memory condition.

    SoftReference的原理是:在保持对对象的引用时保证在JVM报告内存不足情况之前将清除所有的软引用。

    youdao

  • The garbage collector then assesses whether soft references need to be cleared at this time, based on the amount of memory reclaimed by the current collection and other policy considerations.

    垃圾收集器然后根据当前收集所回收的内存总量和其他策略考虑因素,判断软引用此时是否需要被清除。

    youdao

  • Soft references, like weak references, can help applications prevent object loitering by enlisting the aid of the garbage collector in making cache eviction decisions.

    与弱引用一样,软引用通过利用垃圾收集器在作出缓存回收决策方面的帮助,有助于防止应用程序出现对象游离。

    youdao

  • Soft references, like weak references, can help applications prevent object loitering by enlisting the aid of the garbage collector in making cache eviction decisions.

    与弱引用一样,软引用通过利用垃圾收集器在作出缓存回收决策方面的帮助,有助于防止应用程序出现对象游离。

    youdao

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

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

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