Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 77317 invoked from network); 8 Jan 2008 16:58:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Jan 2008 16:58:54 -0000 Received: (qmail 46092 invoked by uid 500); 8 Jan 2008 16:58:42 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 46069 invoked by uid 500); 8 Jan 2008 16:58:42 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 46060 invoked by uid 99); 8 Jan 2008 16:58:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jan 2008 08:58:42 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of t.p.ellison@gmail.com designates 209.85.128.185 as permitted sender) Received: from [209.85.128.185] (HELO fk-out-0910.google.com) (209.85.128.185) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jan 2008 16:58:17 +0000 Received: by fk-out-0910.google.com with SMTP id 18so9793799fks.4 for ; Tue, 08 Jan 2008 08:58:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; bh=I8igXFFovS/9PGs8nGFEjZ4Uu4CTUucr53j7OFUyGW8=; b=lQzp1Ikk07xR6+7XbwLne9ocuYfPVlU/IVvXOsXBqzxjxWLk5QJrkIzU16TE0U44Hslsys8NjstNXP/771S4catPwrXxVbktm3GaXcXTMzn9352fkv0P5kQ1TwHeFQiFuayXxJ5fiAvp0iMdeGF+xjfQntlnbhUy5005nqLmxSM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; b=sAhdLklkpxR+j95f4Srv2dwxn3AF6VnNjBor5SjsEkFevA4QCysV2C/jshJTfQn6tLb3zEO++qA1TUIP+fFTtkobKjBUGauMMGOtCScsFjxM1YB5Wt+/Ex7w8s04sxhiH1FgAmRqPwRr2yUHu3rtCeckdZEavQIGEuiq7poNAgE= Received: by 10.78.168.1 with SMTP id q1mr25015615hue.71.1199811500941; Tue, 08 Jan 2008 08:58:20 -0800 (PST) Received: from ?9.20.183.163? ( [195.212.29.83]) by mx.google.com with ESMTPS id 6sm637904nfv.14.2008.01.08.08.58.19 (version=SSLv3 cipher=RC4-MD5); Tue, 08 Jan 2008 08:58:20 -0800 (PST) Message-ID: <4783ABA9.8010203@gmail.com> Date: Tue, 08 Jan 2008 16:58:17 +0000 From: Tim Ellison User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: dev@harmony.apache.org Subject: Re: [classlib] HashMap optimization (again) References: <47838CD7.2000509@gmail.com> <4bebff790801080807s2b634409n62632159071ddc69@mail.gmail.com> In-Reply-To: <4bebff790801080807s2b634409n62632159071ddc69@mail.gmail.com> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Aleksey Shipilev wrote: > Hi, Tim! > > Thanks for reminder :) Let me explain the situation for DRL VM > performance. There two main points of degradation caused by your > patch: > 1. Break of scalar replacement on instanceof operation, solved by HARMONY-5014. > 2. Changes in inline tree caused by increased method sizes in HashMap. Ok, that wasn't clear to me, so thanks for explaining. > This (2) is main concern, the problem is method findNonNullKeyEntry, > which double its size with your change. I had played with inliner > heuristic in OPT, but can't find optimal configuration for it. By > "optimal" I mean configuration that show at least same performance > that original HashMap does. That mean even with HARMONY-5014 onboard > we have a *degradation*. > > Today I realize that we can try to split this method in two chunks > (specialized and not specialized) and thus not interfere much with > inliner heuristics, if we can force inliner to leave cold chunk not > inlined. I'm gonna try this approach this week. So, can we revisit > this discussion after additional data is available? It also will be > great to have your version in form of the JIRA with patch against > current state of trunk. Thanks Aleksey. I have uploaded the current patch to HARMONY-5374. It would be good to figure out how we can make a single version work well for both VMs. Regards, Tim