当垃圾收集器回收程序不再使用的内存时,它可以停止任何应用程序线程。
When the garbage collector runs to reclaim memory that is no longer used by the program, it can stop all the application threads.
但是,您可以通过使用在非可回收程序集中声明的入口点来调入本机代码。
However, you can call into native code by using an entry point that is declared in a non-collectible assembly.
在所有其他方面,可回收程序集的创建和使用方式都与其他动态程序集相同。
In all other respects, collectible assemblies are created and used in the same way as other dynamic assemblies.
当您释放了与可回收程序集关联的所有对象之后,公共语言运行时(CLR)会自动卸载该程序集。
The common language runtime (CLR) unloads a collectible assembly automatically when you have released all objects associated with the assembly.
可回收程序集是瞬态的(即,无法保存),并会受到针对可回收程序集的限制一节中所述的限制的约束。
The assembly is transient (that is, it cannot be saved) and is subject to limitations described in the Restrictions on Collectible Assemblies section.
正常不能连接应用程序只有等到垃圾回收来释放它,在这这前这个连接应用回收程序在池中都是被标为不可用的。
The application would have to wait for GC to claim it, until then it is not marked as available from pool.
在未来,将需要更有效的清洗技术、管理程序以及水的回收和净化技术,以减少浪费。
In the future, more effective washing techniques, management procedures, and recycling and purification of water will be needed to reduce wastage.
洛杉矶地区参议员洛丽亚·罗梅罗提出的另一项议案要求高科技制造商开发回收所谓电子垃圾的程序。
A separate bill by Los Angeles-area Senator Gloria Romero would require high-tech manufacturers to develop programs to recycle so-called e-waste.
尽管如此,这样的实现是无法接受的:因为它从来不回收不使用的空间,它导致程序很快会用光内存。
However, such an implementation is hardly ever acceptable: it will cause a program to run out of memory quickly since it never reclaims unused space.
如果对象的引用计数是零,那么它就是垃圾(用户程序不可到达它),并可以回收。
If an object's reference count is zero, it is garbage (unreachable from the user program) and can be recycled.
类不仅会在该类的对象被垃圾回收时加载,它同样会因程序的需要而被重新加载。
Classes are reloaded not only after class garbage-collection; they can also be reloaded at Java programs' request.
应用程序暂停的持续时间被称作暂停时间,因为这段时间暂停了应用程序进程使GC可以回收自由空间。
The time during which the application is halted is referred to as pause time because application progress is paused for the GC to reclaim free space.
内存绝不会被应用程序显式释放,而是被垃圾收集器定期回收。
Memory is never explicitly freed by the application but is instead reclaimed periodically by the garbage collector.
是否决定回收整个应用程序,取决于安全运行时处理正在运行的应用程序的动态角色更新的能力。
The decision to recycle the entire application depends on ability of the security runtime to handle dynamic role updates to a running application.
AIXPCM有一个构建在其功能上的路径健康检查程序,用来自动回收失败路径。
AIXPCM has a path health checker built into its functionality to reclaim failed paths automatically.
因此,并非始终可以回收应用程序的更新部分并维护应用程序的运行时完整性。
Therefore, it is not always possible to recycle updated portions of the application and maintain run time integrity of the application.
这些应用程序主要是提供信息和建议,找到回收点,帮助计算个人碳足迹。
Primarily these apps offer information and advice, identify recycling stations, and help calculate individual carbon footprints.
传统GC无法满足这个需求,因为应用程序必须暂停以便GC可以回收所有未使用的内存。
A traditional GC can't meet this requirement because the application must halt for the GC to reclaim any unused memory.
这可以消除基于.NET的应用程序中托管堆大小常见的锯齿模式,并且减少了应用程序为执行垃圾回收而花费的时间。
This can get rid of the sawtooth pattern often seen for the managed heap size in.net-based applications, and reduces the time an application spends performing garbage collection.
还应该分析gc日志,以了解年老代空间回收的频率;最优的分代应用程序进行年老代空间回收操作的频率应该非常低。
You should also analyze GC logs to understand how frequently the tenured space gets collected; an optimal generational application will have very infrequent collection in the tenured space.
与弱引用一样,软引用通过利用垃圾收集器在作出缓存回收决策方面的帮助,有助于防止应用程序出现对象游离。
Soft references, like weak references, can help applications prevent object loitering by enlisting the aid of the garbage collector in making cache eviction decisions.
此外,对正在运行的应用程序应用更新时,并不会对整个应用程序进行回收。
Additionally, when updates are applied to a running application, the entire application does not always need to be recycled.
标记阶段负责跟踪应用程序可见的所有对象并将它们标记为活的,以免回收它们的存储。
The mark phase is responsible for tracing through all objects visible to the application and marking them as live to prevent them from having their storage reclaimed.
如果在运行期间更新应用程序,则在替换应用程序文件时,会在目标节点上回收整个应用程序(停止并重新启动)。
If an application was updated while running, then the entire application is recycled (stopped and restarted) on the target nodes when the application files were replaced.
对象池机制可以降低应用程序所需的分配的数量,从而降低应用程序所需的垃圾回收的数量。
Object pooling reduces the number of allocations, and therefore the number of garbage collections, required by an application.
另外,与对象相关的内存直到终止程序执行后才会回收,这样会使程序对内存的要求增加。
Additionally, the memory associated with the object is not garbage collected until after the finalizer is executed, which can increase the memory demands on the program.
越少的对象创建意味着越少的垃圾回收,这会提高你程序的用户体验质量。
Fewer objects created mean less-frequent garbage collection, which has a direct impact on user experience.
Android系统试图尽可能长时间地保持应用程序进程,但为了新建或者运行更加重要的进程,总是需要清除过时进程来回收内存。
The Android system tries to maintain an application process for as long as possible, but eventually needs to remove old processes to reclaim memory for new or more important processes.
Android系统试图尽可能长时间地保持应用程序进程,但为了新建或者运行更加重要的进程,总是需要清除过时进程来回收内存。
The Android system tries to maintain an application process for as long as possible, but eventually needs to remove old processes to reclaim memory for new or more important processes.
应用推荐