Skip to content

Allow ref struct for TArg in GetOrAdd methods#781

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/allow-ref-struct-for-targ
Draft

Allow ref struct for TArg in GetOrAdd methods#781
Copilot wants to merge 3 commits intomainfrom
copilot/allow-ref-struct-for-targ

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 19, 2026

Summary

  • allow net9 GetOrAdd/GetOrAddAsync APIs to accept ref struct TArg arguments
  • refactor async value creation paths so ref struct arguments are not captured by async state machines
  • add net9 unit coverage for direct cache, interface, and alternate lookup entry points

Validation

  • dotnet format BitFaster.sln
  • dotnet build BitFaster.Caching/BitFaster.Caching.csproj -f net9.0
  • dotnet test BitFaster.Caching.UnitTests/BitFaster.Caching.UnitTests.csproj -f net9.0
  • parallel_validation code review: passed
  • parallel_validation CodeQL: timed out on the final run after a previous run reported 0 alerts

Copilot AI and others added 3 commits April 19, 2026 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants