We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b86cde3 commit 8445b79Copy full SHA for 8445b79
BitFaster.Caching/Lru/ConcurrentLruCore.cs
@@ -542,13 +542,13 @@ private void Cycle(int hotCount)
542
// so this process has races that could reduce cache size below capacity. This manifests
543
// in 'off by one' which is considered harmless.
544
545
- (dest, count) = CycleWarm(Volatile.Read(ref counter.cold));
+ (dest, count) = CycleCold(Volatile.Read(ref counter.cold));
546
if (dest != ItemDestination.Remove)
547
{
548
continue;
549
}
550
551
- (dest, count) = CycleCold(Volatile.Read(ref counter.warm));
+ (dest, count) = CycleWarm(Volatile.Read(ref counter.warm));
552
553
554
0 commit comments