Manual memory management in D2

bearophile bearophileHUGS at lycos.com
Tue Jul 13 13:31:13 PDT 2010


Andrei Alexandrescu:
> The problem is that many of today's GC are structured in ways that make 
> efficient reclamation of individual block extremely inefficient.

If the GC is conservative it can think some reference to a memory block exists, despite it's a false reference, so it can delay even for a lot of time its reclamation. A manual delete can be useful to force the release of this memory block if the programmer knows no references are present. False pointers are present in large memory blocks, that are the memory blocks that you most want to free when you don't need them anymore.

Bye,
bearophile


More information about the Digitalmars-d mailing list