[Gc] Circular references

Andrew Haley aph at redhat.com
Wed Feb 27 02:00:11 PST 2008

Christian Gudrian wrote:
> Aleksey Demakov wrote:
>  > There is no need to break circular references for garbage
>  > collector to detect garbage.
> If had previously defined GC_DEBUG I would have seen the appropriate 
> finalization warnings in the log file.  However the finalizers do not 
> run.  Are they supposed to?  The documentation for 
> GC_register_finalizer() in gc.h is not quite clear to me:
> "Any finalizable object that is reachable from itself by following one 
> or more pointers will not be finalized (or collected)."

Ouch!  I didn't know that.  I wonder what impact that has on Java.


More information about the Gc mailing list