From caa3acbdba06bed1cffd72b9e283f12f71146b78 Mon Sep 17 00:00:00 2001 From: Alex Peck Date: Thu, 29 Sep 2022 13:10:52 -0700 Subject: [PATCH 1/2] cycle4 --- BitFaster.Caching/Lru/ConcurrentLruCore.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BitFaster.Caching/Lru/ConcurrentLruCore.cs b/BitFaster.Caching/Lru/ConcurrentLruCore.cs index a61cac60..e5533cd5 100644 --- a/BitFaster.Caching/Lru/ConcurrentLruCore.cs +++ b/BitFaster.Caching/Lru/ConcurrentLruCore.cs @@ -446,7 +446,7 @@ private void Cycle(int hotCount) { (var dest, var count) = CycleHot(hotCount); - const int maxAttempts = 3; + const int maxAttempts = 4; int attempts = 0; while (attempts++ < maxAttempts) From ba9b5e1281e4548ee594c189be1ab3ac79500ae5 Mon Sep 17 00:00:00 2001 From: Alex Peck Date: Thu, 29 Sep 2022 13:24:18 -0700 Subject: [PATCH 2/2] cycle5 --- BitFaster.Caching/Lru/ConcurrentLruCore.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BitFaster.Caching/Lru/ConcurrentLruCore.cs b/BitFaster.Caching/Lru/ConcurrentLruCore.cs index e5533cd5..2afef096 100644 --- a/BitFaster.Caching/Lru/ConcurrentLruCore.cs +++ b/BitFaster.Caching/Lru/ConcurrentLruCore.cs @@ -446,7 +446,7 @@ private void Cycle(int hotCount) { (var dest, var count) = CycleHot(hotCount); - const int maxAttempts = 4; + const int maxAttempts = 5; int attempts = 0; while (attempts++ < maxAttempts)