Skip to content

Commit

Permalink
Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
henningandersen committed Jan 25, 2024
1 parent 0d43005 commit adcb884
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1424,7 +1424,7 @@ private void unlink(final LFUCacheEntry entry) {
*/
private SharedBytes.IO maybeEvictAndTake(Runnable evictedNotification) {
assert Thread.holdsLock(SharedBlobCacheService.this);
long currentEpoch = epoch.get();
long currentEpoch = epoch.get(); // must be captured before attempting to evict a freq 0
SharedBytes.IO freq0 = maybeEvictAndTakeForFrequency(evictedNotification, 0);
if (freqs[0] == null) {
// no frequency 0 entries, let us switch epoch and decay so we get some for next time.
Expand Down

0 comments on commit adcb884

Please sign in to comment.