We were missing a synchronize on a get if cached method, however it appears that using a ConcurrentHashMap is a better solution so readers can avoid locking if they just want a cached value. Existing synchronization for writers remains untouched, the ConcurrentHashMap is just so readers can safely read without synchronization
4.3 KiB
4.3 KiB