Closed leon-barrett closed 9 years ago
It was previously possible that this code would look up a value in the cache atom, find it present, and try to return it, only to find that the value had been removed in between. Instead, it's necessary to do all the cache accesses atomically.
Very nice. This bug has bothered me for a long time; thanks for fixing it.
It was previously possible that this code would look up a value in the cache atom, find it present, and try to return it, only to find that the value had been removed in between. Instead, it's necessary to do all the cache accesses atomically.