Re: What Garbage Collectors Do

Jeffrey Kesselman <[email protected]> Thu, 5 Jun 2008 13:36:47 -0400
Newsgroups gmane.comp.windows.devel.java.advanced
Message-ID <[email protected]>
Bob Lee wrote:
> On Thu, Jun 5, 2008 at 8:16 AM, Randall R Schulz <[email protected]> wrote:
>
>
>> On Thursday 05 June 2008 07:33, Nils Kilden-Pedersen wrote:
>>
>>> It's a common misconception that the GC needs to clean garbage. The
>>> GC is limited by live objects, not dead. The term "garbage collector"
>>> is truly a misnomer with current implementations as it is not garbage
>>> that is being collected, but non-garbage, i.e. live objects.
>>>
>> How accurate / complete is this notion? It does not seem entirely
>> sensible to me.
>>
>
>
> It sounds like Nils is talking about the "copying" aspect of the garbage
> collector in which it "collects" the live objects, compacts and moves them
> to a different piece of memory, and then frees the old memory all at once.
>
Isnt this what we used to call "heap compaction"?
> Bob
>
> ===================================
> This list is hosted by DevelopMentorĀ®  http://www.develop.com
>
> View archives and manage your subscription(s) at http://discuss.develop.com
>

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com