It's the long-lived objects, such as ones you might pool, that are expensive to garbage collect.
只 有那些生存周期很长的对象,才适合使用对象池技术,因为对它们进行垃圾回收的成本很高。
The runtime cannot garbage collect objects with finalizers until after their finalization methods have been called.
如果一个对象有些终结器,那么运行时只要在终结方法被调用后才对其执行垃圾回收。
A weak reference permits the garbage collector to collect the object while still allowing the application to access the object.
弱引用允许应用程序访问对象,同时也允许垃圾回收器收集相应的对象。
Weak references tell the garbage collector that it should collect an object if there are no references to it other than the weak reference.
弱引用告诉垃圾收集器如果某个对象除了弱引用之外没有其他任何引用,则应该收集该对象。
If the heap is close to the memory usage of the application, the garbage collector has to collect the heap too often, and performance suffers.
如果堆和应用程序的内存使用量很接近,那么垃圾收集器必须非常频繁地收集堆,这会导致性能损失。
This configuration provides a balance between how often the garbage collector runs and how long it takes the garbage collector to collect garbage.
此配置在垃圾回收器运行的频率和垃圾回收器进行垃圾回收操作的时间长度之间进行了平衡。
The reason for the synchronous GC, contained in the tag, consists of system garbage collect for the first case and out of memory for the second.
同步gc的原因包含在标记中,其中systemgarbage collect用于第一种情形而out ofmemory用于第二种情形。
You can also collect object lifetime data that shows you the size and number of objects that are reclaimed in each garbage collection generation.
您还可以收集对象生存期数据,这些数据显示每代垃圾回收中所回收的对象的大小和数目。
However, applications are still vulnerable to leaks if they incorrectly hold on to object references, as the garbage collector will not collect objects that are still referenced.
但是,如果应用程序没有正确地持有对象引用,则仍然有可能会泄露,因为垃圾收集器将不会收集仍然被引用的对象。
An application runs until the heap is exhausted of free memory, at which point the GC stops all application code, performs a garbage collect, and then lets the application continue.
应用程序一直运行,直至耗尽堆的可用内存,此时GC停止所有的应用程序代码、执行垃圾收集,然后让应用程序继续运行。
The building is designed as an ingenious habitable machine that would collect garbage, purify water, and provide housing to thousands of people that live in the slums along the river.
建筑巧妙地被设计成一个居住的机器,它能够收集垃圾,净化水源,并为河流沿岸数以千计的贫民窟居民提供新的居所。
It ends up with less components to compile at build time and less garbage to collect at runtime, so I am really glad you trusted your intuition that the real question was not being answered.
这个方法在生成时要编译的组件数量更少,运行时要回收的垃圾也更少,因此,我很高兴您相信了您的直觉,认为真正的问题并没有得到回答。
As NILFS is log structured, new data is written to the head of the log while old data still exists (until it's necessary to garbage-collect it).
由于NILFS是基于日志结构的,新数据被写到日志的头部,而旧数据仍然保留(直到需要对旧数据进行垃圾收集)。
Automatic repository packing: Git requires that you explicitly pack and garbage-collect its repositories, while Mercurial performs its equivalent operations automatically.
自动的存储库收缩:Git要求您显式地对存储库进行收缩和垃圾收集,而Mercurial自动地执行功能相当的操作。
Like many other children in the same apartment, Li's parents spend all day out to collect garbage.
与许多住在同样房子里的孩子们一样,李的父母整天都出去外面收废品。
Like many other children in the same apartment, li's parents spend all day out to collect garbage. The little boy has to take care of himself at home.
与许多住在同样房子里的孩子们一样,李的父母整天都出去外面收废品。小男孩在家必须自己照顾自己。
In California, LFG is fueling over 300 of the same garbage trucks that collect the trash.
在加州,LFG供给着三百多辆同样的垃圾收集车的燃料。
In addition, it is an increasing economic burden to collect, transport and dispose the massive city domestic garbage.
此外,大量城市生活垃圾的收集、运输和处理工作也给人们增添了越来越沉重的经济负担。
Most cities will come and collect your recycling along with your garbage, though they'll be kept in separate bins.
大部分城市都会通过你的垃圾袋直接收走回收垃圾,然后把它们存在单独的垃圾箱中。
Still, NOAA conducts 47 flyovers to study the garbage patch, and two research teams recently sailed there to collect debris and water samples.
虽然如此,美国国家海洋和大气管理局还是进行了飞行行动以研究这条垃圾带,有两个研究小组最近航行前往收集废弃物和水质样品。
From picking up garbage began slowly he began to collect scrap, a few years later he had his own car and house.
从捡垃圾开始慢慢的他开始收废品,几年后他有了自己的车和房子。
A parameter indicates whether this method can wait a short interval before returning, to allow the system to collect garbage and finalize objects.
参数会指出这个方法是否可以先等待短暂间隔后再传回,以便让系统回收记忆体和最终处理物件。
A parameter indicates whether this method can wait a short interval before returning, to allow the system to collect garbage and finalize objects.
参数会指出这个方法是否可以先等待短暂间隔后再传回,以便让系统回收记忆体和最终处理物件。
应用推荐