diff --git a/simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/FullySegmentedWindowTinyLfuPolicy.java b/simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/FullySegmentedWindowTinyLfuPolicy.java index 81e24c8fc2..0eff2840f3 100644 --- a/simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/FullySegmentedWindowTinyLfuPolicy.java +++ b/simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/FullySegmentedWindowTinyLfuPolicy.java @@ -113,7 +113,7 @@ private void onMiss(long key) { evict(); } - /** Promotes the entry to the protected region's LRU position, demoting an entry if necessary. */ + /** Promotes the entry to the protected region's MRU position, demoting an entry if necessary. */ private void onEdenProbationHit(Node node) { admittor.record(node.key); @@ -131,13 +131,13 @@ private void onEdenProbationHit(Node node) { } } - /** Moves the entry to the LRU position in the admission window. */ + /** Moves the entry to the MRU position in the admission window. */ private void onEdenProtectedHit(Node node) { admittor.record(node.key); node.moveToTail(headEdenProtected); } - /** Promotes the entry to the protected region's LRU position, demoting an entry if necessary. */ + /** Promotes the entry to the protected region's MRU position, demoting an entry if necessary. */ private void onMainProbationHit(Node node) { admittor.record(node.key); @@ -156,7 +156,7 @@ private void onMainProbationHit(Node node) { } } - /** Moves the entry to the LRU position, if it falls outside of the fast-path threshold. */ + /** Moves the entry to the MRU position, if it falls outside of the fast-path threshold. */ private void onMainProtectedHit(Node node) { // Fast path skips the hottest entries, useful for concurrent caches if (node.recencyMove <= (mainRecencyCounter - recencyMoveDistance)) { diff --git a/simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/S4WindowTinyLfuPolicy.java b/simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/S4WindowTinyLfuPolicy.java index 39440f7738..03a3ee9e5f 100644 --- a/simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/S4WindowTinyLfuPolicy.java +++ b/simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/S4WindowTinyLfuPolicy.java @@ -98,12 +98,12 @@ private void onMiss(long key) { evict(); } - /** Moves the entry to the LRU position in the admission window. */ + /** Moves the entry to the MRU position in the admission window. */ private void onEdenHit(Node node) { node.moveToTail(headEden); } - /** Promotes the entry to the protected region's LRU position, demoting an entry if necessary. */ + /** Promotes the entry to the protected region's MRU position, demoting an entry if necessary. */ private void onMainHit(Node node) { node.remove(); sizeMainQ[node.level]--; diff --git a/simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/WindowTinyLfuPolicy.java b/simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/WindowTinyLfuPolicy.java index 90a3248511..a9a2dc2e6a 100644 --- a/simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/WindowTinyLfuPolicy.java +++ b/simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/WindowTinyLfuPolicy.java @@ -115,13 +115,13 @@ private void onMiss(long key) { evict(); } - /** Moves the entry to the LRU position in the admission window. */ + /** Moves the entry to the MRU position in the admission window. */ private void onEdenHit(Node node) { admittor.record(node.key); node.moveToTail(headEden); } - /** Promotes the entry to the protected region's LRU position, demoting an entry if necessary. */ + /** Promotes the entry to the protected region's MRU position, demoting an entry if necessary. */ private void onProbationHit(Node node) { admittor.record(node.key); @@ -140,7 +140,7 @@ private void onProbationHit(Node node) { } } - /** Moves the entry to the LRU position, if it falls outside of the fast-path threshold. */ + /** Moves the entry to the MRU position, if it falls outside of the fast-path threshold. */ private void onProtectedHit(Node node) { // Fast path skips the hottest entries, useful for concurrent caches if (node.recencyMove <= (mainRecencyCounter - recencyMoveDistance)) { diff --git a/simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/tinycache/TinyCachePolicy.java b/simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/tinycache/TinyCachePolicy.java index a5397a7956..bc608cc33e 100644 --- a/simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/tinycache/TinyCachePolicy.java +++ b/simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/tinycache/TinyCachePolicy.java @@ -21,6 +21,9 @@ import com.github.benmanes.caffeine.cache.simulator.policy.PolicyStats; import com.typesafe.config.Config; +/** + * @author gilga1983@gmail.com (Gil Einziger) + */ public final class TinyCachePolicy implements Policy { private final PolicyStats policyStats; private final TinyCache tinyCache; diff --git a/simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/tinycache/TinyCachePolicywithGhostCache.java b/simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/tinycache/TinyCachePolicywithGhostCache.java index 245f8d0d8f..0fdc7df19e 100644 --- a/simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/tinycache/TinyCachePolicywithGhostCache.java +++ b/simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/tinycache/TinyCachePolicywithGhostCache.java @@ -21,6 +21,9 @@ import com.github.benmanes.caffeine.cache.simulator.policy.PolicyStats; import com.typesafe.config.Config; +/** + * @author gilga1983@gmail.com (Gil Einziger) + */ public final class TinyCachePolicywithGhostCache implements Policy { private final TinyCacheWithGhostCache tinyCache; private final PolicyStats policyStats; diff --git a/simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/tinycache/WindowTinyCachePolicy.java b/simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/tinycache/WindowTinyCachePolicy.java index c2db4f7d8d..fd8e3dfe29 100644 --- a/simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/tinycache/WindowTinyCachePolicy.java +++ b/simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/tinycache/WindowTinyCachePolicy.java @@ -22,6 +22,9 @@ import com.github.benmanes.caffeine.cache.simulator.policy.PolicyStats; import com.typesafe.config.Config; +/** + * @author gilga1983@gmail.com (Gil Einziger) + */ public final class WindowTinyCachePolicy implements Policy { private final TinyCache window; private final PolicyStats policyStats;