码迷,mamicode.com
首页 > Windows程序 > 详细

C# - Garbage Collection

时间:2014-10-30 15:18:47      阅读:209      评论:0      收藏:0      [点我收藏+]

标签:garbage collection   c#   


The .NET Framework‘s garbage collector manages the allocation and release of memory for your application. Each time you create a new object, the common language runtime allocates memory for the object from the managed heap. As long as address space is available in the managed heap, the runtime continues to allocate space for new objects. However, memory is not infinite. Eventually the garbage collector must perform a collection in order to free some memory. The garbage collector‘s optimizing engine determines the best time to perform a collection, based upon the allocations being made. When the garbage collector performs a collection, it checks for objects in the managed heap that are no longer being used by the application and performs the necessary operations to reclaim their memory.

C# - Garbage Collection

标签:garbage collection   c#   

原文地址:http://blog.csdn.net/troubleshooter/article/details/40620223

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!