This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GC leaks debugging


On 04/01/2011 01:39 AM, Erik Groeneveld wrote:
L.S.,

I am debugging memory leaks in the GC of libgcj.  Generally, libgcj
performs well, but there are some cases in which the heap literally
explodes over time. I wish to solve this. The OpenJDK vm runs the same
tests without any leaking.

I compiled GCC 4.6, build with --enable-libgcj-debug=yes and started
testing with GC_DUMP_REGULARLY=1.  From the results I have a few
questions to understand it better.  I am still in a phase of
pinpointing a minimal program to demonstrate the problem, and I would
like to get hints as to search further.

1. The finalization table entries keeps on increasing up to 39344
until it is killed, but the objects which are eligible for immediate
finalization remains 0.  It seems that no finalization takes place.
Could you give any hints as to what could be the reason for this?  It
logs:


You should also look at:


http://gcc.gnu.org/onlinedocs/gcc-4.6.0/gcj/Invoking-gc_002danalyze.html#Invoking-gc_002danalyze

David Daney

[...]



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]