I came across the following in SlabAllocationCacheValueBufferPool.java. Is the below method thread-safe?
@Override
public CacheValue getCacheValue(int cacheBlockSize) {
validCacheBlockSize(cacheBlockSize);
int numberOfChunks = getNumberOfChunks(cacheBlockSize);
...
}
It does allocation in a tight-loop using BlockLocks, Slab & Chunks. Is
there a race-condition where 2 threads can pick same slab & chunk?
