• There are two major memory-management hazards to avoid in non-garbage-collected languages: memory leaks and dangling Pointers.

    在非垃圾收集语言中需要避免两个主要的内存管理危险:内存泄漏和悬空指针。

    youdao

  • Gets the total size, in bytes, of all memory allocations that have been made by the application domain since it was created, without subtracting memory that has been garbage-collected.

    获取应用程序域在创建后已执行的所有内存分配的总大小(以字节为单位),在计算总大小时不会减去已进行垃圾回收的内存。

    youdao

  • Any classes that are no longer being referenced are then eligible to be garbage collected.

    任何类只要不再被引用,它就符合垃圾收集的条件。

    youdao

  • If it is intended to have a shorter lifetime than the application, ensure that it gets unregistered, so that it can be garbage collected.

    如果侦听器的寿命应当比应用程序的短,那么请确保取消它的登记,这样它就可以被垃圾收集。

    youdao

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

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

    youdao

  • Unfortunately, an associated downside to increased heap size is a corresponding increase in the amount of time needed to find and process objects that should be garbage collected.

    遗憾的是,增加堆大小的一个缺点是查找和处理需要垃圾收集的对象所需的时间也会随之增加。

    youdao

  • Because the inner function holds a reference to the outer function's variables, the scope object with property a will not be garbage collected.

    由于内部函数持有到外部函数的变量的引用,所以这个带属性a的范围对象将不会被垃圾收集。

    youdao

  • To avoid this problem, any classes that are to be serialized should be loaded by a class loader that does not need to be garbage collected — by the system class loader, for example.

    为了避免这个问题,凡是要进行序列化的类,都应当由不需要被垃圾收集的类装入器装入——例如由系统类装入器装入。

    youdao

  • This prevents the Socket and User objects from being garbage collected, even though the application is never going to use either of them again.

    这会阻止Socket和User对象被垃圾收集,即使应用程序不会再使用它们。

    youdao

  • The mapping between a class and its ProtectionDomain is set up when the class is first loaded and will not change until the class is garbage collected.

    一个类与其ProtectionDomain之间的映射是在类第一次装载时设置的,并在类被垃圾收集之前不会改变。

    youdao

  • It would be nice if there was a way to be notified when the referent of a weak reference is garbage collected, and that is what reference queues are for.

    如果有一种方法可以在弱引用的referent被垃圾收集时发出通知就好了,这就是引用队列的作用。

    youdao

  • In smaller heaps, when garbage must be collected very frequently, the pause times have more of an effect on application response times than they do in very large heaps, with infrequent collections.

    在较小的堆中,当必须频繁收集垃圾时,停顿时间对应用程序响应时间的影响比在较大堆中不频繁收集时的影响更大。

    youdao

  • Reference objects themselves are subject to garbage collection and can be collected before the referent, in which case they are not enqueued.

    Reference对象本身服从于垃圾收集,并且可在referent之前被收集,在这样的情况下,它们没有加入队列。

    youdao

  • For decades, the zabbaleen, the despised garbage people, have collected, sorted, recycled and sold the refuse of Egypt's megalopolis of a capital.

    多少年来,受鄙视的拾荒者们在收集,整理,回收和卖掉这些埃及首都人口密集地区的垃圾。

    youdao

  • Retain Forever: Objects with this lifetime are never garbage collected and are accessible to all threads.

    RetainForever:具有此生存期的对象不进行垃圾收集并且所有线程都可以访问该对象。

    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

  • When you add a mapping to a WeakHashMap, remember that it is possible that the mapping could "fall out" later because the key is garbage collected.

    在向WeakHashMap中添加映射时,请记住映射可能会在以后“脱离”,因为键被垃圾收集了。

    youdao

  • After the program control exits the subscope, the instance of the MyClass object is garbage collected, because there are no references to that instance of the MyClass object outside that subscope.

    程序控制退出子范围后,MyClass对象的实例作为垃圾被收集,因为在子范围的外面没有对 MyClass 对象实例的任何引用。

    youdao

  • All generated garbage is collected, and so the amount generated is exactly the same as the amount the garbage collector is collecting.

    由于收集了所有生成的垃圾,因此生成垃圾的数量与垃圾收集器收集的垃圾数量完全相同。

    youdao

  • The garbage collector will know that the object itself is still in use and it will not be garbage collected.

    垃圾收集器就知道对象本身仍在使用,它不会被垃圾收集。

    youdao

  • The plot on the Report tab shows statistics about the mean and total amounts of garbage collected during the run.

    Report选项卡上的图形显示了有关在运行期间所收集的平均垃圾数量和总垃圾数量的统计信息。

    youdao

  • If no such path to the root set exists for an object, it is called unreachable and will be collected (deleted) the next time the garbage collector is ran.

    如对象到根集的此路径不存在,它便会被识别为无法达到,垃圾回收器下次运行时便会将其收集(删除)。

    youdao

  • Using WeakHashMap solves the problem of Thread objects not getting garbage collected, at some additional performance cost.

    以一些额外的性能开销为代价,使用WeakHashMap解决了无法对Thread对象进行垃圾回收的问题。

    youdao

  • Accordingly, you should always check that get returns a non-null value before using its result, as it is expected that the referent will eventually be garbage collected.

    相应地,在使用其结果之前,应当总是检查get是否返回一个非null值,因为referent最终总是会被垃圾收集的。

    youdao

  • Therefore, the bottom line is that you can never guarantee that an available object will ever be collected by the garbage collector.

    因此,概括地说,您永远无法保证可供收集的对象总是会被垃圾收集器收集。

    youdao

  • When the new space runs out of free memory, the garbage is collected only in that space.

    当新空间耗尽空闲内存时,将仅在该空间中进行垃圾收集。

    youdao

  • Natives can create global references so that objects are not garbage collected until they are no longer needed.

    本机可以创建一些全局引用,以保证对象在不再需要时才会被垃圾收集器回收。

    youdao

  • Conversely, if the heap is too large, long pause times will occur each time the heap is analysed and garbage collected.

    反过来,如果堆过大,那么分析堆和执行垃圾回收时将出现很长时间的暂停。

    youdao

  • Most new languages are garbage collected, for example, and I don't understand why people who create languages want to write their own GC.

    例如,大多数新语言都带垃圾回收,但我不理解为什么创建这些新语言的人要编写自己的GC呢。

    youdao

  • So the more memory that you allocate, the more frequently the memory is garbage collected, and thus the worse your code's performance becomes.

    因此,你分配越多的内存,对内存进行垃圾回收的频率就越频繁,你的代码性能就会变得越差。

    youdao

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

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

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