GC leaks debugging

Andrew Haley aph@redhat.com
Thu Apr 14 10:50:00 GMT 2011


On 04/14/2011 11:01 AM, Erik Groeneveld wrote:
> On Thu, Apr 14, 2011 at 10:43 AM, Andrew Haley <aph@redhat.com> wrote:
>>> I will be looking into getting USE_MMAP to work, as I think that would
>>> be a more definite solution.  However if I enable it, it segvs.
>>>
>>> Are there any specific obstacles for USE_MUNMAP when used in GCJ, or
>>> should it just work?
>>
>> MUNMAP, hmm.  I don't know; it should work but there's no experience.
> 
> Ok, that is important information if I start debugging: it is perhaps
> only a bug, not a fundamental problem per se.

Maybe.

>> Why do you want to munmap, anyway?  Are you running out of swap space?
> 
> Well, I assume that if the GC unmaps a page (hblk), it can always be
> mapped at any other location when a new block is needed, effectively
> circumventing fragmentation completely.

AFAIK it just returns the memory to the OS; I don't think it affects
anything else.

Andrew.



More information about the Java mailing list