This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Can I use the GC to find the number and type of each java object?
- From: David Daney <ddaney at avtrex dot com>
- To: java at gcc dot gnu dot org
- Date: Mon, 10 May 2004 11:02:01 -0700
- Subject: Can I use the GC to find the number and type of each java object?
I occasionally run out of memory when running GCJ compiled code, and in
the interests of understanding what is happening, I would like to be
able to dump the type, size and occurrence count of each reachable object.
It there a predefined method, or lacking that a good place to hook in to
boehm-gc to find information about all reachable objects?
David Daney.