By tag: GC
0
kicks
Pitfalls and Best Practices to prevent them: Object Finalizers
A posting talking about the wrong usage of object finalizers (also known as "destructors").
0
kicks
How the Garbage Collector works - Part 2
Now let’s go deeper to understand how the Garbage Collector (GC) is actually collecting the dead objects and how this may affect the performance.
0
kicks
How the Garbage Collector works - Part 1
The Garbage Collector (GC) can be considered the heart of the .NET Framework. It manages the allocation and release of memory for any .NET application. In order to create good .NET applications, we must know how the Garbage Collector (GC) works.
0
kicks
Things you MUST dispose
When the .NET Framework instantiates an object, it allocates memory for that object on the managed heap. The object remains on the heap until it's no longer referenced by any active code, at which point the memory it's using is reclamed by the Garbage Collector (GC). Before the GC deallocates the me...
0
kicks
A good reason for calling GC.Collect()
Using GC.Collect to verify object destruction in unit tests.
0
kicks
Top 20 .NET Garbage Collection Articles
Ah. Garbage Collection... how I love and hate thee. =P
I think one sad thing about programming in .net is that it seems many developers don't know or care anything about garbage collection and memory management. You used to *have* to know about it in order to write bug free code. I suppose it is ...
0
kicks
Managing unmanaged memory
The title of this post might seem confusing. Garbage Collector (or GC) in .Net is designed to take care of managed memory only, so what do you do in a case where you have a managed object that itself takes very small amount of memory but allocates significant amount of unmanaged resources? In that c...
0
kicks
How to Use the Singleton Pattern and the Garbage Collector to Manage a
Here's an easy to minimize the overhead of an expensive resource, such as an image or a network connection, using the singleton pattern and some simple hints to the garbage collector.
0
kicks
Did it with .NET - Adventures with the Garbage Collector and the JIT O
Dan Shechter's code sample that illustrates a certain peculiarity of the .NET garbage collector.
0
kicks
A quiz about the .net garbage-collector
Tess lists some "potential interview questions" about the .net GC. He lists the answers in a followup post: http://blogs.msdn.com/tess/archive/2007/04/10/net-garbage-collector-popquiz-followup.aspx
0
kicks
Adventures with the Garbage Collector and the JIT Optimizer
This article delves into a certain peculiarity of the .NET garbage collector. Along the way, it explores IL, optimized JIT-compiled code and even the underlying CLR structures.