Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4B64FDA0A for ; Mon, 24 Sep 2012 11:19:52 +0000 (UTC) Received: (qmail 86146 invoked by uid 500); 24 Sep 2012 11:19:51 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 85212 invoked by uid 500); 24 Sep 2012 11:19:45 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 85163 invoked by uid 99); 24 Sep 2012 11:19:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Sep 2012 11:19:43 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [77.238.189.222] (HELO nm7-vm0.bullet.mail.ird.yahoo.com) (77.238.189.222) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 24 Sep 2012 11:19:33 +0000 Received: from [77.238.189.55] by nm7.bullet.mail.ird.yahoo.com with NNFMP; 24 Sep 2012 11:19:12 -0000 Received: from [212.82.108.226] by tm8.bullet.mail.ird.yahoo.com with NNFMP; 24 Sep 2012 11:19:12 -0000 Received: from [127.0.0.1] by omp1003.bt.mail.ird.yahoo.com with NNFMP; 24 Sep 2012 11:19:12 -0000 X-Yahoo-Newman-Id: 165029.18630.bm@omp1003.bt.mail.ird.yahoo.com Received: (qmail 85078 invoked from network); 24 Sep 2012 11:19:12 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1348485552; bh=Yoahk6VhRCt2m9FnZecrw0vhmFEV4YftKTNIdATOm1o=; h=X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:X-Virus-Scanned:Received:Received:User-Agent:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding:Subject:From:Date:To:Message-ID; b=zijAQv4w7YrYBVnEWqvXmKr8kp1Ao3ahMG/60UVbSrshi933sXCpwy5jh+ik79pewox4HL5f6sM1O/OqUHPPGZHvC4XVHaP3H9wnC1DIig/lsb+R7WdZimq19Y3amiaTIQGdlZAGoWeCD0mvttUcRc5sho9ZlF2ZUQoifm8KnKU= X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 47A3w0IVM1lD9xKIYp4LXSEXQM0e1zpBLbjV.uwxGXEK9Yh g0VgLuHJHQaZJ2wwfQp7pI2KoLZeZW5i54M7UknliBq4sTkwTsm1qAa_rj8S ozJO6VD4c_4mG_.VvEBKiQweb47nKwNpV7dQ4USu65WspHT_690py57YAhUd 8gxmNqMk2tsJy7nLK9Pnlv_AEPgJYkS42Yu9mo5Jun37Z.OEojSzh1hhqZcm IKMWJvQGbBOnuCXgdsHLjYyN.icGgqXy2KS4kGBUuyVmN7HNmBEA6GhkoqoC pBsnfGcpXWyQlsP9Co86ZWbYUN4GY9pYvFqbHWwpNZG_wd2NJG8oLxJnFUUR c3gsIgXYYG9v43I0Zk4x3Dk6vL8XK8UG5x1FgAI5ey3wlVRdD3NUwa0j3n5A 7 X-Yahoo-SMTP: 56TNLPWswBBNVS_kiT4ZwBAS8ZwKJ2BaB901hkoATM8MbuRyxg-- Received: from mail.homeinbox.net (markt@86.176.71.228 with login) by smtp824.mail.ukl.yahoo.com with SMTP; 24 Sep 2012 04:19:11 -0700 PDT Received: from localhost (localhost [127.0.0.1]) by mail.homeinbox.net (Postfix) with ESMTP id 90131B22001 for ; Mon, 24 Sep 2012 12:19:11 +0100 (BST) X-Virus-Scanned: Debian amavisd-new at homeinbox.net Received: from mail.homeinbox.net ([127.0.0.1]) by localhost (mail.homeinbox.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JYp3atzFUyzY for ; Mon, 24 Sep 2012 12:19:01 +0100 (BST) Received: from [31.81.196.94] (unknown [31.81.196.94]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mail.homeinbox.net (Postfix) with ESMTPSA id D0D45EAB7BE for ; Mon, 24 Sep 2012 12:19:00 +0100 (BST) User-Agent: K-9 Mail for Android In-Reply-To: References: <20120923210923.32EB123888FE@eris.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: svn commit: r1389145 - in /tomcat/trunk/java/org/apache: catalina/connector/CoyoteAdapter.java tomcat/util/collections/ConcurrentWeakHashMap.java From: Mark Thomas Date: Mon, 24 Sep 2012 12:18:58 +0100 To: Tomcat Developers List Message-ID: <0dccee29-ca5c-4e79-8660-6c5c8e2eaf1c@email.android.com> X-Virus-Checked: Checked by ClamAV on apache.org Konstantin Kolinko wrote: >2012/9/24 : >> Author: markt >> Date: Sun Sep 23 21:09:22 2012 >> New Revision: 1389145 >> >> URL: http://svn.apache.org/viewvc?rev=1389145&view=rev >> Log: >> Some more low(ish) hanging fruit from the allocation hit list. This >accounts for ~8% due to the way Thread stores names. >-1 for ReadWriteLock. >The problem with WeakHashMap is that its get() operation can modify it >(as it processes referencequeue). Thus you cannot use ReadWriteLock, >but must use plain synchronization here. Yep. I'll remove that class. ThreadLocal is a better solution for this problem anyway. Not sure why I didn't think of that the first time. I'll fix this later today. Cheers, Mark --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org