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

Cache LastAccessed during MemoryCache compaction #61187

Merged
merged 3 commits into from
Dec 2, 2021

Commits on Nov 3, 2021

  1. Cache LastAccessed during MemoryCache compaction

    During cache compaction, we are sorting entries based on their LastAccessed time. However, since the cache entries can still be used concurrently on other threads, the LastAccessed time may be updated in the middle of sorting the entries. This leads to exceptions in a background thread, crashing the process.
    
    The fix is to cache the LastAccessed time outside of the entry when we are adding it to the list. This will ensure the time is stable during the compaction process.
    
    Fix dotnet#61032
    eerhardt committed Nov 3, 2021
    Configuration menu
    Copy the full SHA
    2150b5a View commit details
    Browse the repository at this point in the history

Commits on Dec 1, 2021

  1. Configuration menu
    Copy the full SHA
    23c91e4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    78f40eb View commit details
    Browse the repository at this point in the history