Garbage collection in .Net 4.0

2019-03-17 19:35发布

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

5条回答
Bombasti
2楼-- · 2019-03-17 20:12

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.

查看更多
兄弟一词,经得起流年.
3楼-- · 2019-03-17 20:21

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楼-- · 2019-03-17 20:26

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.

查看更多
该账号已被封号
5楼-- · 2019-03-17 20:27

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.

查看更多
登录 后发表回答