Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
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]