[Gc] double frees

MenTaLguY mental at rydia.net
Mon Nov 15 10:07:56 PST 2004


On Sun, 14 Nov 2004, Hans Van den Eynden wrote:

> On Wed, 10 Nov 2004, MenTaLguY wrote:
>
> > If your code does avoid freeing objects explicitly, and your application
> > or compiler cannot be tricked into hiding information from the collector,
> > then you are at least safe from double frees or dereferencing dangling
> > pointers."
>
> How does the GC prevent against double frees from GC_FREE() and
> delete??? Are there some bytes set??

It gives you the freedom to write code that never calls GC_FREE() or
delete.

-mental


More information about the Gc mailing list