From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18401 invoked by alias); 14 Apr 2011 10:02:14 -0000 Received: (qmail 18391 invoked by uid 22791); 14 Apr 2011 10:02:13 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-vx0-f175.google.com (HELO mail-vx0-f175.google.com) (209.85.220.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 14 Apr 2011 10:02:09 +0000 Received: by vxd7 with SMTP id 7so1391499vxd.20 for ; Thu, 14 Apr 2011 03:02:08 -0700 (PDT) Received: by 10.52.112.170 with SMTP id ir10mr343114vdb.150.1302775328165; Thu, 14 Apr 2011 03:02:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.159.9 with HTTP; Thu, 14 Apr 2011 03:01:28 -0700 (PDT) In-Reply-To: <4DA6B3AD.7090508@redhat.com> References: <4D997D8C.9060903@redhat.com> <4D9993D4.9040704@redhat.com> <4D9ADA89.8000307@redhat.com> <4D9B112B.6000408@redhat.com> <4D9CB200.2000103@redhat.com> <4D9F13E9.7000106@redhat.com> <238A96A773B3934685A7269CC8A8D04272F0041802@GVW0436EXB.americas.hpqcorp.net> <4DA55ABC.1040505@redhat.com> <4DA6B3AD.7090508@redhat.com> From: Erik Groeneveld Date: Thu, 14 Apr 2011 10:02:00 -0000 Message-ID: Subject: Re: GC leaks debugging To: Andrew Haley Cc: "Boehm, Hans" , "java@gcc.gnu.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2011-04/txt/msg00052.txt.bz2 On Thu, Apr 14, 2011 at 10:43 AM, Andrew Haley wrote: >> I will be looking into getting USE_MMAP to work, as I think that would >> be a more definite solution. =C2=A0However 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. =C2=A0I 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. > Why do you want to munmap, anyway? =C2=A0Are you running out of swap spac= e? 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. However, I did not dive into the exact usage of mmap and I assumed a straightforward way of utilization of mmap by the GC. I might be wrong....