Re: Garbage Collection
- From: "Sanyin" <prevodilac@xxxxxxxxxxx>
- Date: Thu, 17 Jan 2008 09:57:17 +0100
"Remy Lebeau (TeamB)" <no.spam@xxxxxxxxxxx> wrote in message
news:478e59c3@xxxxxxxxxxxxxxxxxxxxxxxxx
Yes, but at least, lifetime management of classes is more than needed.If
"Sanyin" <prevodilac@xxxxxxxxxxx> wrote in message
news:478e0c5b$1@xxxxxxxxxxxxxxxxxxxxxxxxx
Delphi has GC, for arrays, strings, records.
So it has 3/4 of it :)
Garbage collection is when freed memory is marked as unused but remains
allocated so it can't be reused right away, and then a separate background
collector process goes through at frequent intervals returning marked
memory back to the system for later reallocation. That is not how Delphi
manages its memory in Win32. Freed memory is available for immediate
reuse. There is no marking involved. There is no background collector
running. Records and static arrays that are not dynamically allocated
reside on the stack and are "freed" when the stack is cleared. Strings
and DynamicArrays are reference counted and freed immediately when all
references to them are gone. None of that is related to garbage
collection.
exists for arrays and records, than why not for classes.Most memory leaking
is from classes, and you can always use pointer and manual allocating...
.
- References:
- Garbage Collection
- From: Sanyin
- Re: Garbage Collection
- From: Mark A. Andrews
- Re: Garbage Collection
- From: Sanyin
- Re: Garbage Collection
- From: Remy Lebeau \(TeamB\)
- Garbage Collection
- Prev by Date: Re: Garbage Collection
- Next by Date: Re: Garbage Collection
- Previous by thread: Re: Garbage Collection
- Next by thread: Re: Garbage Collection
- Index(es):
Relevant Pages
|