From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20085 invoked by alias); 15 Apr 2005 11:31:12 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org Received: (qmail 20032 invoked by uid 48); 15 Apr 2005 11:31:03 -0000 Date: Fri, 15 Apr 2005 11:31:00 -0000 From: "aph at gcc dot gnu dot org" To: java-prs@gcc.gnu.org Message-ID: <20050415113100.21044.aph@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug java/21044] New: Static class init optimization is broken X-Bugzilla-Reason: CC X-SW-Source: 2005-q2/txt/msg00129.txt.bz2 List-Id: Pre tree-SSA, we did an optimization whereby we only initialized a class once per method invocation. This optimization was disabled for some reason, and we now call _Jv_InitClass multiple times. The worst case is a simple function like this: public static int Ack(int m, int n) { return (m == 0) ? (n + 1) : ((n == 0) ? Ack(m-1, 1) : Ack(m-1, Ack(m, n - 1))); } where Jv_InitClass is now called four times, leading to very poor performance. -- Summary: Static class init optimization is broken Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: java AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: aph at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21044