On Sun, 04 Oct 2009 09:07:59 +0300, bearophile <bearophileh...@lycos.com> wrote:

Vladimir Panteleev:

This problem isn't something that can be easily fixed. Any stray reference
to any node in the list will prevent nodes following it from ever being
deallocated.

Whoa, a very long and detailed answer :-) Thank you.
Do you know why in LDC this program seems to work in constant memory?

My guess would be that it doesn't add the entire static data segment of the standard C library to the list of GC roots, therefore the chances of a stray pointer are much lower.

--
Best regards,
 Vladimir                          mailto:thecybersha...@gmail.com

Reply via email to