Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 16033 invoked from network); 21 Dec 2010 21:41:47 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Dec 2010 21:41:47 -0000 Received: (qmail 81630 invoked by uid 500); 21 Dec 2010 21:41:47 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 81551 invoked by uid 500); 21 Dec 2010 21:41:47 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 81543 invoked by uid 99); 21 Dec 2010 21:41:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Dec 2010 21:41:47 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of simone.tripodi@gmail.com designates 74.125.82.171 as permitted sender) Received: from [74.125.82.171] (HELO mail-wy0-f171.google.com) (74.125.82.171) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Dec 2010 21:41:40 +0000 Received: by wyb38 with SMTP id 38so4419651wyb.30 for ; Tue, 21 Dec 2010 13:41:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=YfE3mr+BV6Vq4AocXYdjdrnjDS/0SwjcN6ZbAPRSZpQ=; b=fKNdTbbHgagfsOPNiQJ8D5+zNpd1dU4AAg27bNhSuMqwD+StdAamxl/6w9i+HSmhM/ M4YCIyO62OE6V342M15lMZ9j8fQyybnc65Hi0bGUT/hScIM3qrApjYsPQ3qsqMIpibb2 txA4vMTCfjMDGf+v7UhwTitpck83pEBTPYiik= 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=C8xSy5rw/4/lOWwoY3YlibDir5VWt45O48HO/WJpGulbo3nW+2izttARXxn0pmxn0G cfd528X0qzQkt82VI3w3bpy6VZbhK+ZVh3U8VVgRXoE0hmRRGw6+M50bKjSjG1Xc/vzB AMTy1YjhZstoMWB4zMPGbcaU+vF6oGMDXQeqY= MIME-Version: 1.0 Received: by 10.227.157.205 with SMTP id c13mr3703759wbx.123.1292967680153; Tue, 21 Dec 2010 13:41:20 -0800 (PST) Received: by 10.227.69.148 with HTTP; Tue, 21 Dec 2010 13:41:20 -0800 (PST) In-Reply-To: References: <20101221205835.2558A23889BF@eris.apache.org> <4D11163A.50503@apache.org> Date: Tue, 21 Dec 2010 22:41:20 +0100 Message-ID: Subject: Re: svn commit: r1051649 - /commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/GenericObjectPool.java From: Simone Tripodi To: Commons Developers List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi guys, thanks for the quick feedbacks, I marked them as synchronized just because in one of the last threads we agreed to make them synchronized. If there is the need to make class fields volatile instead, it's fine by me but I suggest to discuss about it in another thread to involve everybody in the decision. WDYT? Simo http://people.apache.org/~simonetripodi/ http://www.99soft.org/ On Tue, Dec 21, 2010 at 10:31 PM, Phil Steitz wrote= : > On Tue, Dec 21, 2010 at 4:03 PM, Mark Thomas wrote: > >> On 21/12/2010 20:58, simonetripodi@apache.org wrote: >> > Author: simonetripodi >> > Date: Tue Dec 21 20:58:34 2010 >> > New Revision: 1051649 >> > >> > URL: http://svn.apache.org/viewvc?rev=3D1051649&view=3Drev >> > Log: >> > fixed non-synchronized methods >> >> Could the fields be volatile instead? I'd rather avoid use of >> synchronized if at all possible. >> > > I was thinking the same thing. =C2=A0The only reason that I can see to ma= ke the > accessors synchronized is to ensure consistent values within synchronized > blocks. =C2=A0I think it is OK to leave that to the implementations, but = we > should probably doc that somewhere if we go this route. > > Phil > >> >> Cheers, >> >> Mark >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org >> For additional commands, e-mail: dev-help@commons.apache.org >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org