From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1223 invoked by alias); 5 Apr 2011 06:50:38 -0000 Received: (qmail 1215 invoked by uid 22791); 5 Apr 2011 06:50:37 -0000 X-SWARE-Spam-Status: No, hits=-1.8 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; Tue, 05 Apr 2011 06:50:30 +0000 Received: by vxd7 with SMTP id 7so48486vxd.20 for ; Mon, 04 Apr 2011 23:50:30 -0700 (PDT) Received: by 10.52.68.18 with SMTP id r18mr6967302vdt.82.1301986230104; Mon, 04 Apr 2011 23:50:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.167.34 with HTTP; Mon, 4 Apr 2011 23:49:50 -0700 (PDT) In-Reply-To: <4D9993D4.9040704@redhat.com> References: <4D95909E.4060309@redhat.com> <4D959C24.8030408@redhat.com> <238A96A773B3934685A7269CC8A8D04272EFEFD5C3@GVW0436EXB.americas.hpqcorp.net> <4D997D8C.9060903@redhat.com> <4D9993D4.9040704@redhat.com> From: Erik Groeneveld Date: Tue, 05 Apr 2011 06:50:00 -0000 Message-ID: Subject: Re: GC leaks debugging To: Andrew Haley Cc: 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/msg00026.txt.bz2 [...] >> Any real program produces so much blacklist messages that it hardly >> runs. =C2=A0I'd like to investigate this or am I on the wrong track >> completely? > > I think you are. =C2=A0The heap is small in this simple test case, so the= re > are no real problems. I will ignore this for now then. > You need to find out what the real problem is. =C2=A0Find just one of tho= se > "need to allocate large block" messages, and find out why it is being > called. =C2=A0I suspect that there is an actual bug that is causing the > explosion and it can be found. =C2=A0Forget about 991 blacklist messages: > not useful. I have done many tests, with different programs, which all run flawlessly on OpenJDK, but explode on GCJ. I have run some test last night, and I'll see from the logs that the heap is 1 GB, while about 700 MB of it is free. Also it seems that the finalization table keeps growing. I am running now, but later this day I'll post the log. (And search the mail archives with a new keyword: finalization ;-) > I'd have a look myself, but there is no way to duplicate your problem. > BTW, is this on a 32-bit or 64-bit platform? It is on 32-bit. On 64 bit, the blacklisting is not happening. But the heap keeps exploding, so you are right, the problem probably lies elsewhere. (Although I still feel sorry for the poor GC on 32 bit systems ;-) Thanks a lot. Erik