Challenge: The code review bug that gives me nightmares–the issue
November 2, 2021In my previous post, I discussed a bug that brought up in code review, that bug made me go into near panic mode. Here is the issue:
In order to understand this bug, you have to take into account multiple concurrent threads at the same time. Look at the ComputeHashAndPutInCache() method, where we register an eviction callback for the item in the…