The World According to Nick
My take on Software, Technology, Politics, and anything else I feel like talking about.
Wednesday, March 24, 2004

Writing Around the Garbage Collector 

Or Teaching an old dog new tricks: GC fun in Whidbey. A blog by Brad Abrams on some new features added to the Whidbey release of Visual Studio .NET (and the .NET framework) to workaround issues that non-deterministic finalization causes with regards to unmanaged memory. Basically they've added two new features:

  1. GC.AddMemoryPressure. This function lets the GC know the true cost of a managed object when you have written a small wrapper around unmanaged memory that could be possibly large. This allows the GC to collect sooner then it might normally.
  2. HandleCollector class. This is a class that allows you to inform the GC of a limited number of objects available (database connections, handles, etc.) so that it can cause a collection to occur when these resources may be running low.

Of course both of these solutions are hacks, and what they need instead is Deterministic Finalization... but we've been over that before.

Comments:

Post a Comment

Related Links:

About Me



Name: Nick
Home: Wauwatosa, WI, United States

I'm a Software Consultant in the Milwaukee area. Among various geeky pursuits, I'm also an amateur triathlete, and enjoy rock climbing. I also like to think I'm a political pundit.


 View My Profile

Archives
 Home Page

Subscribe to this Feed

Search Archives
Previous Posts
The Outsourcing Bogeyman
More Helpful Messages from MSN Messenger
One More Reason to Interview at Microsoft
E-mail and Snail Mail Unite
Can Blogging Ruin Your Life?
Congress to Test Air Screening Program
Anti-Piracy Vigilantes Strike
It Was All About the Oil... for the French
The Programmer's Secret Handshake
If Kerry was Misquoted... Why Didn't He Just Say S...

Personal Links
Carnival of the Badger
The Coding Monkey
del.icio.us Links
Flickr Photos
Blog Critics Reviews





Blogroll Me!

music
books
video
culture
politics
sports
gaming

www.flickr.com
This is a Flickr badge showing public photos from Nick_Schweitzer. Make your own badge here.

Credits

Blogcritics: news and reviews







This page is powered by Blogger. Isn't yours?

Weblog Commenting and Trackback by HaloScan.com

RSS-to-JavaScript.com

Listed on BlogShares

Design By maystar