[Gc] Circular references

Florian Weimer fw at deneb.enyo.de
Fri Feb 29 14:39:13 PST 2008


* Bruce Hoult:

> Mind you, the Java rules are evil and dangerous and misguided and most
> Java programs using finalizers are as a result very likely to be buggy
> (even if they seem to work).

Is there a tutorial/book/whatever on how to do it right (e.g., if you
want to free native resources in the presence of imperfect exception
handling, but with potentially hostile code)?  Bonus points if it deals
with cases like "finalizing A must be delayed until B has been
finalized" and "explicitly freeing A must implicitly free B first". 8-)


More information about the Gc mailing list