Skip to content

docs: record the .NET 11 plan for the value-type cache hit path - #221

Merged
MarcelRoozekrans merged 1 commit into
mainfrom
docs/182-hit-path-comment
Oct 11, 2026
Merged

MarcelRoozekrans merged 1 commit into
mainfrom
docs/182-hit-path-comment

Conversation

@MarcelRoozekrans

Copy link
Copy Markdown
Contributor

Refs #182. Comment-only change in CacheWriter.BuildCacheHit.

The comment said to keep the concrete-type hit path "until the runtime fix ships". It now says where the fix landed and what happens next:

  • Fix: Fix NativeAOT nullable isinst branch elimination dotnet/runtime#134823, in the .NET 11 ILCompiler, backported to release/11.0 in #134872. It was not backported to .NET 10.
  • Plan: once this repo targets net11.0, the generator emits the generic TryGetValue<TItem> call under #if NET11_0_OR_GREATER, and keeps the current shape for net8–10. Apps targeting .NET 11 then pick it up automatically.

🤖 Generated with Claude Code

The comment on BuildCacheHit said to keep the concrete-type hit path until
the runtime fix ships. The fix is now known: it is in the .NET 11
ILCompiler and was not backported to .NET 10. The comment now says so, and
says how the generic call returns once this repo targets net11.0: under
#if NET11_0_OR_GREATER, with the current shape kept for earlier frameworks.

Refs #182

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MarcelRoozekrans
MarcelRoozekrans merged commit 1529e8f into main Oct 11, 2026
8 checks passed
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.

1 participant