www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - GC reuses memory?

reply Fractal <goodcoffee server.com> writes:
Hello

When memory is requested, the GC actually can reuse an unrefenreced block?

Thanks
May 08 2009
parent Jarrett Billingsley <jarrett.billingsley gmail.com> writes:
On Fri, May 8, 2009 at 8:45 PM, Fractal <goodcoffee server.com> wrote:
 Hello

 When memory is requested, the GC actually can reuse an unrefenreced block?

 Thanks
Yes. It keeps memory in freelists of variable sizes of blocks. When memory is freed, it's put back on the freelist.
May 08 2009