This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Debugging memory leaks
- From: Andrew Haley <aph at redhat dot com>
- To: "Boehm, Hans" <hans dot boehm at hp dot com>
- Cc: java at gcc dot gnu dot org
- Date: Fri, 15 Apr 2005 16:53:48 +0100
- Subject: Debugging memory leaks
I've been having a great deal of difficulty tracking down memory leaks
in libgcj.
What I need is some sort of interface that allows me to enquire who
points to an object. The ideal interface would be something like
points_to (obj) -> obj. I realize that in practice there is a set of
objects that point to a particular object, but that doesn't concern
me: one is all I need.
Is there any interface within the GC that can give me this function?
If not, how hard would it be to provide? Can you provide me with some
guidance?
Ideally, I'd love to have something like Glasgow Haskell Compiler's
heap profiling, but I'll settle for much less.
Thanks,
Andrew.