The Artima Developer Community
Sponsored Link

Agile Buzz Forum
.NET Garbage Collection

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
.NET Garbage Collection Posted: Nov 22, 2003 6:30 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: .NET Garbage Collection
Feed Title: David Buck - Blog
Feed URL: http://www.cincomsmalltalk.com/rssBlog/buck-rss.xml
Feed Description: Smalltalk can do that
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From David Buck - Blog

Advertisement
From everything I've read about .NET's garbage collector, it seems that uses generational mark and sweep. It does a mark and sweep of the generation 1 space whenever it starts to get full and moves any survivors into generation 2 which is again garbage collected by mark and sweep. (and so on).

I find this very surprising and very worrying. Mark and sweep algorithms have to traverse all of the objects (garbage or not). Scavenging garbage collectors don't have to look at the garbage - they only take care of active objects. I would imagine (although I have no measurements to confirm this) that systems that allocate and free objects quickly (which happens a lot if you have auto-boxing) would be much better off with a scavenger. I wonder how long it will take Microsoft to implement one.

Read: .NET Garbage Collection

Topic: Canberran Smalltalkers? Previous Topic   Next Topic Topic: Re: SurfControl protects you from viewing this site

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use