Uploaded image for project: 'Commons DBCP'
  1. Commons DBCP
  2. DBCP-300

remove synchronize access of createDataSource

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.2, 1.3, 1.4
    • Fix Version/s: 2.0
    • Labels:
      None
    • Environment:

      RHEL, jdk1.5.0_12, commons-dbcp 1.2.2

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              nikhilpal Nikhil Singh
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: