Re: GC leaks debugging

Andrew Haley <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
On 04/08/2011 04:52 PM, Erik Groeneveld wrote:
>>> Paging Hans Boehm.  can you suggest ways to get the system to GC more
>>> frequently?  Would doing so avoid this scenario?
>>>
>>
>> Call _Jv_SetGCFreeSpaceDivisor().  I forget what we used to do, but bigger
>> numbers cause it to collect more often.  The default may be 5, but if you
>> make it 20 or 25 you really reduce heap growth.
> 
> Yes, I saw this in the code and I already tried that with 30.  Did not help. ;-(
> Also tried explicit GC_gcollect.  Did also not help.
> 
> I'll sleep another night; new clues will come... ;-)

I think you should add some code to detect a high watermark and
then trap to a breakpoint.

Andrew.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.