Skip to content

[release/11.0] Fix NativeAOT resource string inlining for async IL - #134065

Merged
JulieLeeMSFT merged 1 commit into
release/11.0from
backport/pr-133970-to-release/11.0
Sep 17, 2026
Merged

JulieLeeMSFT merged 1 commit into
release/11.0from
backport/pr-133970-to-release/11.0

Conversation

@github-actions

@github-actions github-actions Bot commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Backport of #133970 to release/11.0

/cc @jakobbotsch

Customer Impact

  • Customer reported
  • Found internally

NativeAOT fails to fold some string resource lookups when used from within async methods. This leads to pulling in a large amount of unnecessary resource machinery, bloating app sizes using string resources for NativeAOT. Reported by customer in #133954.

Regression

  • Yes
  • No

Testing

Manual testing on customer's application. NativeAOT outerloop pipeline run.

Risk

Low.

Preserve ECMA module identity for async IL wrappers and recognize it
when injecting and resolving resource string tokens.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: bf8623a5-a7a4-4c7d-8371-a97b53478abe
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @agocke, @dotnet/ilc-contrib
See info in area-owners.md if you want to be subscribed.

@steveisok steveisok added the Servicing-approved Approved for servicing release label Sep 17, 2026
@JulieLeeMSFT JulieLeeMSFT added this to the 11.0.0 milestone Sep 17, 2026
@JulieLeeMSFT
JulieLeeMSFT merged commit be70323 into release/11.0 Sep 17, 2026
116 of 120 checks passed
@JulieLeeMSFT
JulieLeeMSFT deleted the backport/pr-133970-to-release/11.0 branch September 17, 2026 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-NativeAOT-coreclr Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants