Please sign in to comment.
CCACHE-28: fixes concurrency bug in has?
We were allowing for another thread to add an item to the cache after we'd already tried to pull out the SoftReference. Since the SoftReference had been pulled out before the item was added, it was nil, but since contains? returned true, we assumed that it was not nil. Signed-off-by: Ambrose Bonnaire-Sergeant <firstname.lastname@example.org>
- Loading branch information...
Showing with 1 addition and 2 deletions.