GKOP - inconsistent synchronisation of poolKeyList
--------------------------------------------------

                 Key: POOL-205
                 URL: https://issues.apache.org/jira/browse/POOL-205
             Project: Commons Pool
          Issue Type: Bug
            Reporter: Sebb


poolKeyList is an ArrayList - which is not thread-safe.
Updates are performed whilst holding the keyLock.writeLock.

However, the list is read in evict() without using the same lock, so there's a 
potential for evict() to see stale or inconsistent state.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to