Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Nightly Builds
-
Platform: All
Description
A field of org.apache.commons.pool2.impl.GenericObjectPool<T> might need to be synchronized. Field org.apache.commons.pool2.impl.GenericObjectPool.evictor is read and written in method org.apache.commons.pool2.impl.GenericObjectPool.startEvictor(long), which might be called by multiple threads concurrently. Is there a possibility that org.apache.commons.pool2.impl.GenericObjectPool.startEvictor(long) gets invoked concurrently? Would it be safer to make org.apache.commons.pool2.impl.GenericObjectPool.evictor volatile?