Garbage collection in .Net 4.0

北城以北 提交于 2019-12-20 17:30:19

问题


Is there any change in .Net 4.0 garbage collector execution?


回答1:


Here's a blog posting:

http://geekswithblogs.net/sdorman/archive/2008/11/07/clr-4.0-garbage-collection-changes.aspx

and

http://www.infoq.com/news/2009/06/Background-Collector




回答2:


There is also AppDomainResourceManager feature, which allows you to track resource usage ( Memory and CPU ) per appdomain. the GC part of this feature is the ability to get per appdomain memory tracking.




回答3:


There's also an ephemeron implemenation using a new class called System.Runtime.CompilerServices.ConditionalWeakTable which is detailed here.

This is useful for collecting dynamic languages which allow setting arbitary "properties" on arbitrary instances.




回答4:


Yes, lots.

My latest book Visual F# 2010 for Technical Computing includes a lot of performance-related information about .NET 4 as well as F# itself and the performance measurements and advice are quite different with .NET 4 and the new background garbage collector. In many cases we're seeing substantial performance improvements but there are some slowdowns as well.




回答5:


Also, check out the blog of the developer who works on the GC, where there is an article about the new GC, plus a link to a Channel 9 interview regarding the .NET 4.0 GC.



来源:https://stackoverflow.com/questions/1156844/garbage-collection-in-net-4-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!