You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Devirtualization for Async Methods in crossgen2 resolveVirtualMethod #124620
Currently, crossgen2's resolveVirtualMethod fails when the method is an async variant. As a result, async methods cannot currently be devirtualized and may miss optimization opportunities.
We need to implement devirtualization support for async variants of virtual methods in crossgen2.
Activity
MichalStrehovsky commentedon Feb 20, 2026
It's possible that all that's needed is to switch this line:
runtime/src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/ReadyToRunCompilerContext.cs
Line 14 in f8ac08f
to
= new AsyncAwareVirtualMethodResolutionAlgorithm(this);Use AsyncAwareVirtualMethodResolutionAlgorithm in R2R compiler context
Enable devirtualization of async methods in crossgen2 (#125420)
Enable devirtualization of async methods in crossgen2 (#125420)