From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21338 invoked by alias); 19 Feb 2010 03:22:10 -0000 Received: (qmail 21330 invoked by uid 22791); 19 Feb 2010 03:22:10 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from g1t0028.austin.hp.com (HELO g1t0028.austin.hp.com) (15.216.28.35) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 19 Feb 2010 03:22:07 +0000 Received: from G6W0641.americas.hpqcorp.net (g6w0641.atlanta.hp.com [16.230.34.77]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by g1t0028.austin.hp.com (Postfix) with ESMTPS id 325271C05F; Fri, 19 Feb 2010 03:22:05 +0000 (UTC) Received: from G4W1852.americas.hpqcorp.net (16.234.97.230) by G6W0641.americas.hpqcorp.net (16.230.34.77) with Microsoft SMTP Server (TLS) id 8.2.176.0; Fri, 19 Feb 2010 03:21:14 +0000 Received: from GVW0436EXB.americas.hpqcorp.net ([16.234.32.153]) by G4W1852.americas.hpqcorp.net ([16.234.97.230]) with mapi; Fri, 19 Feb 2010 03:21:13 +0000 From: "Boehm, Hans" To: Bryce McKinlay , Dave Korn CC: GCC Java Date: Fri, 19 Feb 2010 03:22:00 -0000 Subject: RE: Two quick GC questions [was Re: [REVIVED: PATCH PR42811,4.5 regression] java.lang.ExceptionInInitializerError in ecj1] Message-ID: <238A96A773B3934685A7269CC8A8D0425784FAA8EC@GVW0436EXB.americas.hpqcorp.net> References: <4B6C9B26.3010106@gmail.com> <4B6D0C67.5030500@gmail.com> <4B78BA6D.5000603@gmail.com> <7230133d1002150504r23738e28if92303426c349661@mail.gmail.com> <4B7CC61E.1050709@gmail.com> <4B7D631B.8030401@gmail.com> <4B7DA9FA.1020307@gmail.com> <7230133d1002181413h5c6abcf8ge7a989349e0fa3c0@mail.gmail.com> In-Reply-To: <7230133d1002181413h5c6abcf8ge7a989349e0fa3c0@mail.gmail.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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: 2010-02/txt/msg00007.txt.bz2 > From: Bryce McKinlay > > In theory, there could also be a performance advantage to > having a single library because a smart linker / linker > script could optimize internal calls to things like > GC_malloc, speeding up the allocation path by avoiding PLT > indirection. > > Bryce > Also in theory, in this case, you should be able to have your cake and eat = it, too. The idea was that we should be able to inline the fast path that = looks only at a small collection of the thread-local free-lists, but then c= alls into the GC library on the slow path. GC7.x generally has the infrats= ructure for that. But it's not clear anyone has the time to do this. Last= time I looked into this, the current gcj allocation path is still much slo= wer than one would like, so this should help. Hans