private void releaseLocation(BlockCacheLocation location) { if (location == null) { return; } int slabId = location.getSlabId(); int block = location.getBlock(); location.setRemoved(true); _locks[slabId].clear(block); _lockCounters[slabId].decrementAndGet(); _metrics.blockCacheEviction.incrementAndGet(); _metrics.blockCacheSize.decrementAndGet(); }