-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.0
-
Labels:None
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]