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 infinite loop in IGenericCacheEntry.CreateAndCache #104126

Merged

Conversation

jkoritzinsky
Copy link
Member

CreateAndCache should give up if it's lost the race to the point of another thread putting an entry in the right slot in the composite cache. It won't ever overwrite a filled slot.

Reported by ASP.NET

cc: @BrennanConroy

CreateAndCache should give up if it's lost the race to the point of another thread putting an entry in the right slot in the composite cache. It won't ever overwrite a filled slot.
Copy link
Contributor

Tagging subscribers to this area: @mangod9
See info in area-owners.md if you want to be subscribed.

Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jkoritzinsky jkoritzinsky merged commit 1537de6 into dotnet:main Jun 28, 2024
87 checks passed
@jkoritzinsky jkoritzinsky deleted the composite-cache-infinite-loop branch June 28, 2024 17:32
@github-actions github-actions bot locked and limited conversation to collaborators Jul 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants