Re: GC leaks debugging

Andrew Haley <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
On 04/14/2011 11:01 AM, Erik Groeneveld wrote:
> On Thu, Apr 14, 2011 at 10:43 AM, Andrew Haley <[email protected]> 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.
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.