Uploaded image for project: 'Commons Pool'
  1. Commons Pool
  2. POOL-136

Inconsistent synchronization in GenericKeyedObjectPool

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.5
    • None

    Description

      There are several fields that have synchronized set/get methods, but which are not accessed in a synchronized manner.

      Access to these variables needs to be synch. when referenced from within the class as well.

      _minEvictableIdleTimeMillis
      _testWhileIdle - this could be made volatile, in which case get/set don't need to be synch.
      _totalIdle
      _totalInternalProcessing
      _whenExhaustedAction

      The setFactory() method synchronizes the code that updates the variable _factory; however references to the factory are not synchronized.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: