Skip to content

Conversation

@majocha
Copy link
Contributor

@majocha majocha commented May 2, 2025

I spotted a bug in the recently merged general purpose cache.

Let's fix it before folks start complaining.

The following assertion not always holds:

assert (node.List = evictionQueue)

This assert failure can be seen under heavier us in debug mode in VS.

The reason is that we post eviction queue messages on store updates, which are not in sync with the eviciton queue mailboxprocessor (and we don't want them to be, it would hurt the performance). In effect it is possible that Update for an item is posted before Add.

The simple fix is to turn the assertion into condition.

The rest of this PR are some refactorings to make the code clearer.

@github-actions
Copy link
Contributor

github-actions bot commented May 2, 2025

⚠️ Release notes required, but author opted out

Warning

Author opted out of release notes, check is disabled for this pull request.
cc @dotnet/fsharp-team-msft

@majocha majocha marked this pull request as ready for review May 2, 2025 19:34
@majocha majocha requested a review from a team as a code owner May 2, 2025 19:34
@majocha
Copy link
Contributor Author

majocha commented May 7, 2025

I think additional release notes are not needed here. This is just a bugfix for #18527

@edgarfgp edgarfgp added the NO_RELEASE_NOTES Label for pull requests which signals, that user opted-out of providing release notes label May 7, 2025
@T-Gro T-Gro enabled auto-merge (squash) May 14, 2025 07:37
@T-Gro T-Gro merged commit 9e74c0e into dotnet:main May 14, 2025
33 of 34 checks passed
@github-project-automation github-project-automation bot moved this from New to In Progress in F# Compiler and Tooling May 14, 2025
@github-project-automation github-project-automation bot moved this from In Progress to Done in F# Compiler and Tooling May 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

NO_RELEASE_NOTES Label for pull requests which signals, that user opted-out of providing release notes

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants