Finding memory leaks

Andrew Haley aph@redhat.com
Sun Feb 29 17:32:00 GMT 2004


Thomas Aeby writes:
 > 
 >   2) Many of the objects that are marked by both my mark algorithm and
 >      gcj's garbage collector are pointed to by some nested data
 >      structure that do not constitute Java  objects - I haven't found
 >      out yet what this is is. Maybe some internal list used for
 >      incremental garbage collection?

I doubt it.  Do you know what root points to these mystery structures?
Perhaps they're instances of Class, perhaps something else.

 >   3) No idea why the garbage collector does not collect the objects that
 >      are not marked by my algorithm.

Well, there must be some root pointing to them; that or a gc bug.

Like I said, we really need s full trace during gc to figure this out.

Andrew.



More information about the Java mailing list