-
void evictFromMain(int candidates) {
while(weightedSize() > maximum()) {
if (candidates == 0) {
candidate = accessOrderWindowDeque().peekLast(); // why peekLast?
}
}
} |
Beta Was this translation helpful? Give feedback.
Answered by
ben-manes
Jul 18, 2022
Replies: 1 comment 10 replies
-
This occurs for weighted caches when a large entry causes many evictions. I don’t recall if this is intentional or accidentally flipped. You can look at the commit for an explanation and suggest changes if you think that there is a mistake. |
Beta Was this translation helpful? Give feedback.
10 replies
Answer selected by
ben-manes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This occurs for weighted caches when a large entry causes many evictions. I don’t recall if this is intentional or accidentally flipped. You can look at the commit for an explanation and suggest changes if you think that there is a mistake.
464bc19