Skip to content

Commit 8445b79

Browse files
author
Alex Peck
committed
reverse
1 parent b86cde3 commit 8445b79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

BitFaster.Caching/Lru/ConcurrentLruCore.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,13 +542,13 @@ private void Cycle(int hotCount)
542542
// so this process has races that could reduce cache size below capacity. This manifests
543543
// in 'off by one' which is considered harmless.
544544

545-
(dest, count) = CycleWarm(Volatile.Read(ref counter.cold));
545+
(dest, count) = CycleCold(Volatile.Read(ref counter.cold));
546546
if (dest != ItemDestination.Remove)
547547
{
548548
continue;
549549
}
550550

551-
(dest, count) = CycleCold(Volatile.Read(ref counter.warm));
551+
(dest, count) = CycleWarm(Volatile.Read(ref counter.warm));
552552
if (dest != ItemDestination.Remove)
553553
{
554554
continue;

0 commit comments

Comments
 (0)