Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Garbage collection in .Net 4.0

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

like image 952
web dunia Avatar asked Jul 21 '09 01:07

web dunia


3 Answers

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

like image 161
ScottE Avatar answered Oct 14 '22 14:10

ScottE


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.

like image 33
mfawzymkh Avatar answered Oct 14 '22 15:10

mfawzymkh


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.

like image 40
Doug McClean Avatar answered Oct 14 '22 16:10

Doug McClean