• 很明显引用不再起作用

    Clearly, the weak references are no longer working.

    youdao

  • 返回指定引用目标当前代数

    Returns the current generation number of the target of a specified weak reference.

    youdao

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

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

    youdao

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

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

    youdao

  • 一点引用一个对象强迫留在记忆里

    The point of a weak reference is to refer to an object without forcing it to stay in memory.

    youdao

  • 如果已经分配最低数量对象对象引用被放置到队列中

    If the minimum number of objects is already allocated, then a weak reference to the object is enqueued.

    youdao

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

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

    youdao

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

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

    youdao

  • 以上是否能看出一个对象不能同时具有引用引用

    From above shall we say that an object can't have a soft reference and a weak reference at the same time?

    youdao

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

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

    youdao

  • 引用一个对象(称为referent)的引用持有者

    A weak reference is a holder for a reference to an object, called the 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 weak reference from the long-lived object to the short-lived object is kept long after the short-lived object has been destroyed.

    youdao

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

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

    youdao

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

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

    youdao

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

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

    youdao

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

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

    youdao

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

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

    youdao

  • 引用允许应用程序访问对象同时允许垃圾回收收集相应对象。

    A weak reference permits the garbage collector to collect the object while still allowing the application to access the object.

    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 sometimes mistakenly used instead of soft references for building caches, but this will result in poor caching performance.

    youdao

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

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

    youdao

  • 因为垃圾回收器一个优先级线程所以引用对象不一定会马上就回收

    GC is a thread of very low priority, so a weak reference object may not be collected immediately.

    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

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

    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

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

    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

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

    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.

    youdao

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

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

    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

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

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

    youdao

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

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

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