NET exception policy when the task is garbage-collected.
净例外政策的任务时,被垃圾收集。
Now the object is reachable again and cannot be garbage-collected.
现在该对象又是可访问的,其不能被垃圾收集。
When a singleton class is garbage-collected and then reloaded, a new singleton instance is created.
当一个单例对象被当着垃圾回收,然后该单例类又被重新加载,一个新的单例对象被创建。
There are two major memory-management hazards to avoid in non-garbage-collected languages: memory leaks and dangling Pointers.
在非垃圾收集语言中需要避免两个主要的内存管理危险:内存泄漏和悬空指针。
There may be times when you find yourself in the world of managed code, and you'd like to interact with Office in a secure, garbage-collected world.
可能有时您会发现自己身处托管代码的世界中,并且想与安全的、垃圾回收世界中的Office进行交互。
These maps hold weak references to allow tracked objects like connections to be garbage collected when they are referenced only by the aspect.
这些图持有弱引用,允许连接这样的被跟踪对象在只有方面引用它们的时候,被垃圾收集掉。
If it is intended to have a shorter lifetime than the application, ensure that it gets unregistered, so that it can be garbage collected.
如果侦听器的寿命应当比应用程序的短,那么请确保取消它的登记,这样它就可以被垃圾收集。
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.
为了避免这个问题,凡是要进行序列化的类,都应当由不需要被垃圾收集的类装入器装入——例如由系统类装入器装入。
In a purely garbage collected system, a circular reference is not a problem: If neither of the objects involved is referenced by any other object, then both are garbage collected.
在纯垃圾收集系统中,循环引用问题不大:若涉及到的两个对象中的一个对象被任何其他对象引用,那么这两个对象都将被垃圾收集。
All generated garbage is collected, and so the amount generated is exactly the same as the amount the garbage collector is collecting.
由于收集了所有生成的垃圾,因此生成垃圾的数量与垃圾收集器收集的垃圾数量完全相同。
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.
遗憾的是,增加堆大小的一个缺点是查找和处理需要垃圾收集的对象所需的时间也会随之增加。
This is important because the singleton aspects are typically not garbage collected.
这一点很重要,因为单体的方面通常不会被垃圾收集。
Any classes that are no longer being referenced are then eligible to be garbage collected.
任何类只要不再被引用,它就符合垃圾收集的条件。
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的范围对象将不会被垃圾收集。
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之间的映射是在类第一次装载时设置的,并在类被垃圾收集之前不会改变。
With weak references, you can maintain a reference to the referent without preventing it from being garbage collected.
使用弱引用后,可以维持对referent的引用,而不会阻止它被垃圾收集。
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被垃圾收集时发出通知就好了,这就是引用队列的作用。
ObjectStreamClass is a primordial class and therefore is never garbage collected.
ObjectStreamClass是一个原始类,所以永远不会被垃圾收集。
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对象被垃圾收集,即使应用程序不会再使用它们。
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 对象实例的任何引用。
You can plot the amount of garbage collected by selecting amount freed from the GC and Memory Visualizer's VGC Data menu.
您可以绘制收集的垃圾数量的图形,方法是从evtk的VGC Data菜单中选择amountfreed。
Memory Usage: Shows when objects are created, when they are garbage collected, and their size
内存使用情况: S可以显示什么时候对象被创建,什么时候它们被垃圾收集以及它们的大小。
Retain Forever: Objects with this lifetime are never garbage collected and are accessible to all threads.
RetainForever:具有此生存期的对象不进行垃圾收集并且所有线程都可以访问该对象。
But as a result, the buffer is never released because it is always reachable by the program (unless the LeakyChecksum object is garbage collected).
但是结果是,缓冲区永远不会被释放,因为它对程序来说总是可及的(除非leakychecksum对象被垃圾收集了)。
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中添加映射时,请记住映射可能会在以后“脱离”,因为键被垃圾收集了。
The plot on the Report tab shows statistics about the mean and total amounts of garbage collected during the run.
Report选项卡上的图形显示了有关在运行期间所收集的平均垃圾数量和总垃圾数量的统计信息。
Using WeakHashMap solves the problem of Thread objects not getting garbage collected, at some additional performance cost.
以一些额外的性能开销为代价,使用WeakHashMap解决了无法对Thread对象进行垃圾回收的问题。
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呢。
Natives can create global references so that objects are not garbage collected until they are no longer needed.
本机可以创建一些全局引用,以保证对象在不再需要时才会被垃圾收集器回收。
So the more memory that you allocate, the more frequently the memory is garbage collected, and thus the worse your code's performance becomes.
因此,你分配越多的内存,对内存进行垃圾回收的频率就越频繁,你的代码性能就会变得越差。
应用推荐