Welcome to MSDN Blogs Sign in | Join | Help

September 2004 - Posts

Part 2 in Maoni's Using GC Efficiently

Maoni posted Part 2 to Using the GC Efficiently. A very in-depth article about Server, Workstation and Concurrent GC. Check it out.
Posted by clyon | 0 Comments
Filed under:

Dispose Dos and Don'ts

Due to the positive response on my previous entry on Dispose, I thought I'd write another, this time on what one should and shouldn't do with a Dispose method. Dispose should contain code to release any unmanaged resources associated with the object's
Posted by clyon | 18 Comments
Filed under:

Demystifying Dispose

One commonly misunderstood feature is the relationship between disposable objects (Objects that implement the IDisposable interface) and the GC. I know there are a lot of online resources about patterns and best practices but there is still a lot of confusion.
Posted by clyon | 36 Comments
Filed under:

GCHandles, Boxing and Heap Corruption

A GCHandle is a struct used to hold onto a managed object to be used by unmanaged code. With a GCHandle you can (among other things): Prevent an object from being garbage collected if unmanaged code has the only live reference to it Pin an object in memory,
Posted by clyon | 9 Comments
Filed under: ,

A Few Good GC Links

I keep a GC folder in my Favorites full of links to articles and blog posts about the .NET GC. I thought it would be a good idea to consolidate them all into one blog post, for handy reference. These are the articles I most often post as answers to questions
Posted by clyon | 7 Comments
Filed under:

Server GC Misconceptions

One of the most common “bugs” I read about on the Microsoft public newsgoups is the fact that the runtime does not automatically choose Server GC mode on a multi-proc machine, or server OS. If the server OS is running on a single-proc machine then the
Posted by clyon | 7 Comments
Filed under: ,

Server, Workstation and Concurrent GC

One common question I see asked is the differences between server and workstation GC, and how Concurrent GC fits in. Server GC is only available on multi-proc machines. It creates one GC heap (and thus one GC thread) for each processor, which are collected
Posted by clyon | 28 Comments
Filed under: ,

A New GC Blog

Hi! My name is Chris Lyon, and I'm a tester for the .NET Garbage Collector. The GC is one of the least-understood components of the CLR, and I hope to try to help our customers better understand it. Topics I hope to cover: General overview of how the
Posted by clyon | 6 Comments
Filed under:
 
Page view tracker