How Garbage Collector works?

Nick Sabalausky a at a.a
Thu Aug 12 01:28:03 PDT 2010


"Borneq" <borneq at antyspam.hidden.pl> wrote in message 
news:i4074v$187r$1 at digitalmars.com...
> U¿ytkownik "Nick Sabalausky" <a at a.a> napisa³ w wiadomo¶ci 
> news:i3vv48$2j19$1 at digitalmars.com...
>> langauge  like the JVM are misconceptions. There's nothing about
>> pointers that  prevents garbage collection. The pointers do cause some
>
> We have array and pointer that not points at start array. When we have 
> want to free memory we mantain 4 bytes pointer+ 4 bytes array positions = 
> 8 bytes (=16 bytes on 64 bits !) ?
> How can free block when pointer not points to begin of block?

The GC keeps track of the starting address and the length of each 
allocation.




More information about the Digitalmars-d mailing list