Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix stuck in LruCache after updating items #3365

Merged
merged 3 commits into from Sep 9, 2022

Commits on Sep 8, 2022

  1. Fix stuck in LruCache after updating items

    Inside the LruCache, it always create a new link node when doing the []= operator, what if we're doing the "updating" operation?
    The `_entries` will replace the new value to the same key entry, but the link list will have two nodes with a same key, once the capacity is exhausted, the application will stuck in removing item as the second removing with the same key changes nothing.
    linroid committed Sep 8, 2022
    Copy the full SHA
    39e06c4 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    6a1f04e View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    9748148 View commit details
    Browse the repository at this point in the history