• Clearly, the weak references are no longer working.

    很明显引用不再起作用

    youdao

  • Soft and weak references can be cleaned up when they are no longer referenced.

    Softweak引用在引用不复存在清除

    youdao

  • For example, it heavily relies on weak references for its data-binding technology.

    比如说,WPF严重倚赖引用实现数据绑定技术。

    youdao

  • The solution in this case is to change the links in the linked list to also be weak references.

    这种情况下,解决办法就是链接列表中的链接更改引用

    youdao

  • A previous article, "Plugging memory leaks with weak references," offers some helpful techniques.

    以前的篇文章引用堵住内存泄漏给出了一些有用的技巧。

    youdao

  • Notice how this method accounts for possible weak references in the queue with the do-while loop.

    请注意方法如何do -while循环来处理队列可能存在引用

    youdao

  • One approach that is sometimes suggested for dealing with lapsed listeners is to use weak references.

    有时推荐一个处理失效侦听器方法使用引用

    youdao

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

    以下示例所示引用引用都是解决内存泄露的强大工具

    youdao

  • Use long weak references only when necessary as the state of the object is unpredictable after finalization.

    在必要使用引用因为在终止后对象状态不可预知的。

    youdao

  • With weak references, you can maintain a reference to the referent without preventing it from being garbage collected.

    使用引用后,可以维持对referent引用而不会阻止垃圾收集

    youdao

  • After adding the linkage to the list, the number of weak references cleared changes from a large number to none at all.

    列表添加链接之后,被清除引用数量较大更改完全没有。

    youdao

  • The problem can be verified by plotting the weak references cleared in the GC and Memory Visualizer, as shown in Figure 17.

    通过EVTK绘制被清除引用的图,可以证实该问题如图17所示。

    youdao

  • Weak references have two constructors: one takes only the referent as an argument and the other also takes a reference queue.

    引用两个构造函数取referent作为参数一个引用队列作为参数。

    youdao

  • Weak references form the basis of one such policy, but there are others, and which policy to use is based on circumstance.

    引用构成这样一个策略基础但是还有其他一些机制,并且使用的策略取决于环境。

    youdao

  • The implementation of WeakHashMap illustrates a common idiom with weak references — that some internal object extends WeakReference.

    WeakHashMap实现展示了引用一种常见用法——一些内部对象扩展WeakReference。

    youdao

  • Weak references tell the garbage collector that it should collect an object if there are no references to it other than the weak reference.

    引用告诉垃圾收集器如果某个对象除了弱引用之外没有其他任何引用,应该收集对象。

    youdao

  • These maps hold weak references to allow tracked objects like connections to be garbage collected when they are referenced only by the aspect.

    这些持有引用允许连接这样被跟踪对象只有方面引用它们时候垃圾收集掉

    youdao

  • Weak references are useful for objects that use a lot of memory, but can be recreated easily if they are reclaimed by garbage collection.

    引用特别适合以下对象占用大量内存通过垃圾回收功能回收以后很容易重新创建。

    youdao

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

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

    youdao

  • Since they seem to be a little-known feature, here is a brief overview of what weak references are, how to use them, and when to use them.

    鉴于引用看起来似乎是一个鲜为人知特性这里简要介绍下什么弱引用,该如何使用以及何时应该使用他们。

    youdao

  • So the best advice with weak references is: profile or benchmark it, to make sure that you choose the best solution for your specific situation.

    所以对于引用最好建议概要描述或者用基准问题测试确保特定环境选择最好方案

    youdao

  • Even when the actual objects are being released in a timely manner, WPF's arrays of weak references hang around and under stress become the memory leak.

    哪怕及时释放掉了实际对象,但WPF引用数组还是会继续持有引用,就导致内存泄漏

    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

  • After working with obj after this if block, you should set obj to null to enable the garbage collector to reclaim this object to take full advantage of weak references.

    使用这个if之后obj之后,应该ob j设置null,从而垃圾收集器能够回收这个对象充分利用弱引用。

    youdao

  • Just as with weak references, a soft reference can be created with an associated reference queue, and the reference is enqueued when it is cleared by the garbage collector.

    正如引用一样,引用创建具有一个相关的引用队列,引用在垃圾收集器清除进入队列

    youdao

  • Because this is such a common use for weak references, WeakHashMap, which USES weak references for keys (but not for values), was also added to the class library in JDK 1.2.

    因为引用常见用法WeakHashMap添加JD k 1.2中,(不是)使用弱引用。

    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

  • In the previous installment, we saw how weak references can provide an application with an alternate means of reaching an object while it is used by the program, but without prolonging its lifetime.

    前一期文章中我们看到了引用如何可以应用程序提供对象程序使用时另一种到达该对象方法但是不会延长对象的生命周期。

    youdao

  • Weak, soft, and phantom references can improve the memory characteristics of your application by allowing flexible caching.

    引用引用引用允许灵活缓存,能够改进应用程序内存特性

    youdao

  • Furthermore, an object in memory can be referenced by multiple references that could be strong, soft, weak, or phantom. Before proceeding further, let's look at some terminology.

    而且内存中的一个对象可以多个引用(可以引用、引用、引用引用)引用。

    youdao

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

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

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