Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 46865 invoked from network); 16 Nov 2009 11:01:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Nov 2009 11:01:42 -0000 Received: (qmail 18102 invoked by uid 500); 16 Nov 2009 11:01:41 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 18032 invoked by uid 500); 16 Nov 2009 11:01:41 -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 18021 invoked by uid 99); 16 Nov 2009 11:01:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Nov 2009 11:01:41 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of alexei.fedotov@gmail.com designates 209.85.220.214 as permitted sender) Received: from [209.85.220.214] (HELO mail-fx0-f214.google.com) (209.85.220.214) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Nov 2009 11:01:30 +0000 Received: by fxm6 with SMTP id 6so1196288fxm.20 for ; Mon, 16 Nov 2009 03:01:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=L2lxMVEIi2GGNMjvoY+gnaEipGdbdErFxlWf0J0ipc4=; b=BoQ/QFYL3Y6NOVtsi8pU2CKKltrVZwIWdOodr1o2dBqbgo30Z+ClKc4A2lds5gYcfb XP3koKtSEX4xCZQqxDUFqkiaw/H/jSqslwZJQklvkZ4YZI7oNTCkNlhgeF/OK8NZGZW/ Ql6iP3ifjPebs71B5C+dVGfYk/zuexlzTf+9Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=BtHPKNsJnv7hRIjG7mU/122HIQLgONrOkHkLTL7VnYtWt55uEbOhxVx7sXuvE9Iy4q VDwbr+eLsI+02f9e1glWvti9EfAHa+d2L9MIW7och9lAlFZwNyk9d8IVGDhBvFeQtQic rR0ZvOEp20g8j9P3WuaiYBwk/ii7HWAvtwAOI= MIME-Version: 1.0 Received: by 10.239.141.159 with SMTP id c31mr799861hba.147.1258369269566; Mon, 16 Nov 2009 03:01:09 -0800 (PST) In-Reply-To: <4AFD8DF2.8060406@gmail.com> References: <4AC4BA89.3020004@gmail.com> <4AF8006A.8030001@gmail.com> <6554f93c0911090905s7f0b1610i5a594ccca8583fe6@mail.gmail.com> <4AFBE9AF.9000704@gmail.com> <6554f93c0911121120p5da1af37pb23ff8846859ebf4@mail.gmail.com> <4AFD8DF2.8060406@gmail.com> Date: Mon, 16 Nov 2009 14:01:09 +0300 Message-ID: Subject: Re: [classlib] Fixing an unsafe reference in InputStream From: Alexei Fedotov To: dev@harmony.apache.org Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org I support reluctance in fixing performance. AFAIK, no performance change should be done without demonstrating incerase on real loads. 2009/11/13 Tim Ellison : > On 12/Nov/2009 19:20, Vijay Menon wrote: >> Right, writes - even unsynchronized ones - to the same cache line are >> problematic. =9AHere's a good quick read on this: >> http://en.wikipedia.org/wiki/MESI_protocol. =9ARecent Intel architecture= s >> adapt this protocol. =9AHere's the interesting bit: >> >> A write may only be performed if the cache line is in the Modified or >> Exclusive state. If it is in the Shared state, all other cached copies m= ust >> be invalidated first. This is typically done by a broadcast operation kn= own >> as *Read For Ownership (RFO)*. >> >> >> If two cores continually write to the same cache line, they'll repeatedl= y >> invalidate each other. > > Thanks for the pointers. > > Given that the current code has been there since time immemorial and is > not broken, I'm inclined to leave it for now and pick this thread up > again after M12. =9AThat'll give us time to see what the difference is > between the local and static versions (though if I were a betting person > I'd say skip is used infrequently enough that nobody's app will notice). > > Regards, > Tim > --=20 With best regards / =D3 =CE=C1=C9=CC=D5=DE=DB=C9=CD=C9 =D0=CF=D6=C5=CC=C1= =CE=C9=D1=CD=C9, Alexei Fedotov / =E1=CC=C5=CB=D3=C5=CA =E6=C5=C4=CF=D4=CF=D7, http://www.telecom-express.ru/ http://harmony.apache.org/ http://www.expressaas.com/ http://openmeetings.googlecode.com/