Skip to content

Support inlining of JIT-inserted TransparentAwait in async versions #129896

Closed

Description

@jakobbotsch

For async versions the JIT insert calls to AsyncHelpers.TransparentAwait when a task would be returned and we couldn't turn it into a tail await. This is done in impWrapTopOfStackInAwait.
Currently we do not mark this as an inline candidate, hence we do not inline it. To properly inline it we will likely need to adjust the getAwaitReturnCall JIT-EE method to return a compile time handle and then do the necessary ceremony around inserting GT_RET_EXPR and calling the inline evaluator.

Activity

  1. added this to the 11.0.0 milestone on Jun 26, 2026
  2. added
    area-CodeGen-coreclr
    on Jun 26, 2026
  3. dotnet-policy-service commented on Jun 26, 2026

    @dotnet-policy-service
    Contributor

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

  4. added
    Priority:2
    on Jul 9, 2026
  5. locked and limited conversation to collaborators on Aug 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Priority:2area-CodeGen-coreclrruntime-async

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions