Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Dec 16, 2025

Backport of #122587 to release/10.0

/cc @BrzVlad

Customer Impact

  • Customer reported
  • Found internally

Customer reported that app on blazor wasm hangs. Compiling methods that call throw helper methods (methods that always throw) with mono interpreter can lead to hangs in the runtime. MAUI ios can also be impacted in theory.

Regression

  • Yes
  • No

This a regression from .NET9. Seems like the issue started happening after #108731.

Testing

Verified with sample repro provided by customer.

Risk

Low. The fix aborts inlining in methods that throw unconditionally. The common mechanism of inline abort is reused so there is no added risk here.

When inlining, we create a placeholder exit_bb that is branched to whenever the inlined method returns. When this bblock was not reachable, it was leading to some inconsistent CFG state. This is relatively easy to fix but, if exit_bb is dead, it means that the method is always throwing an exception. We shouldn't bother inlining such methods in the first place, since they are not part of hot code paths.
@BrzVlad BrzVlad added Servicing-consider Issue for next servicing release review area-Codegen-Interpreter-mono labels Dec 16, 2025
@dotnet-policy-service
Copy link
Contributor

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

@BrzVlad BrzVlad added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Dec 22, 2025
@rbhanda rbhanda added this to the 10.0.3 milestone Dec 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants