Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 40656 invoked from network); 2 May 2003 21:10:20 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 2 May 2003 21:10:20 -0000 Received: (qmail 18038 invoked by uid 97); 2 May 2003 21:12:27 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@nagoya.betaversion.org Received: (qmail 18031 invoked from network); 2 May 2003 21:12:26 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 2 May 2003 21:12:26 -0000 Received: (qmail 40456 invoked by uid 500); 2 May 2003 21:10:18 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 40445 invoked from network); 2 May 2003 21:10:18 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 2 May 2003 21:10:18 -0000 Received: (qmail 18023 invoked by uid 50); 2 May 2003 21:12:25 -0000 Date: 2 May 2003 21:12:25 -0000 Message-ID: <20030502211225.18022.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: commons-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 19615] New: - Unecessary global synchronized in AbandonedObjectPool methods X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19615 Unecessary global synchronized in AbandonedObjectPool methods Summary: Unecessary global synchronized in AbandonedObjectPool methods Product: Commons Version: 2.1 Final Platform: PC OS/Version: Linux Status: NEW Severity: Major Priority: Other Component: Dbcp AssignedTo: commons-dev@jakarta.apache.org ReportedBy: George.Lindholm@ubc.ca Rather than having "public synchronized void returnObject()/borrowObject()" wouldn't this be better if RemoveAbandoned is false: public void returnObject(Object obj) throws Exception { long startTime = System.currentTimeMillis(); if (config != null && config.getRemoveAbandoned()) { synchronized(this) { trace.remove(obj); } } super.returnObject(obj); } George --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org