Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 65406 invoked from network); 11 Sep 2009 08:24:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Sep 2009 08:24:20 -0000 Received: (qmail 64304 invoked by uid 500); 11 Sep 2009 08:24:20 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 64201 invoked by uid 500); 11 Sep 2009 08:24:19 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 64191 invoked by uid 99); 11 Sep 2009 08:24:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Sep 2009 08:24:19 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Sep 2009 08:24:17 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 949A8234C004 for ; Fri, 11 Sep 2009 01:23:57 -0700 (PDT) Message-ID: <594383425.1252657437591.JavaMail.jira@brutus> Date: Fri, 11 Sep 2009 01:23:57 -0700 (PDT) From: "Mark Thomas (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (DBCP-300) remove synchronize access of createDataSource In-Reply-To: <538932893.1252631997645.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DBCP-300?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12754042#action_12754042 ] Mark Thomas commented on DBCP-300: ---------------------------------- Which version of commons-pool? Which lock do you see contention on? Locking is mostly a POOL rather than DBCP issue. A move to jdk 1.5 would allow the use of j.u.concurrent which will would be a significant change to the locking implementation. > remove synchronize access of createDataSource > --------------------------------------------- > > Key: DBCP-300 > URL: https://issues.apache.org/jira/browse/DBCP-300 > Project: Commons Dbcp > Issue Type: Improvement > Affects Versions: 1.2.2 > Environment: RHEL, jdk1.5.0_12, commons-dbcp 1.2.2 > Reporter: Nikhil Singh > > For JDK1.5 onwards we can make the DataSource volatile and start using "double checked locking" idiom. In my performance testing I have already started seeing wait time on this lock. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.