[ 
https://issues.apache.org/jira/browse/POOL-214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Phil Steitz closed POOL-214.
----------------------------

> GenericObjectPool.evictionPolicy not thread-safe
> ------------------------------------------------
>
>                 Key: POOL-214
>                 URL: https://issues.apache.org/jira/browse/POOL-214
>             Project: Commons Pool
>          Issue Type: Bug
>            Reporter: Sebb
>             Fix For: 2.0
>
>
> The instance field GenericObjectPool.evictionPolicy is not updated in a 
> thread-safe way.
> It either needs to be made volatile, or the getters/setters could synch. on 
> the evictionLock.
> The latter is probably more sensible, as the field is used whilst holding 
> that lock.
> [Note: AFAICT, that is currently the only unsafe field in GOP]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to