Skip to content

Conversation

@MichalStrehovsky
Copy link
Member

This was added in #121448 on the VM side, managed side needs a matching change (I actually found this because we had a newly failing test, yay).

Cc @dotnet/ilc-contrib @jakobbotsch

This was added in dotnet#121448 on the VM side, managed side needs a matching change (I actually found this because we had a newly failing test, yay).
@dotnet-policy-service
Copy link
Contributor

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

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds the CORINFO_ASYNC_SAVE_CONTEXTS flag to the managed JIT interface to match a corresponding VM-side change from #121448. This flag indicates that a runtime async method requires save and restore of async contexts, which is needed for user-implemented async methods but not for transparent thunks.

Key Changes

  • Added the CORINFO_ASYNC_SAVE_CONTEXTS enum flag with value 0x00000200
  • Implemented logic to set this flag for async variant implementations

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs Added CORINFO_ASYNC_SAVE_CONTEXTS enum value to CorInfoOptions
src/coreclr/tools/Common/JitInterface/CorInfoImpl.cs Added logic to set the flag when compiling async variant implementation methods

Copy link
Member

@jakobbotsch jakobbotsch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I will start making these changes on the managed side too 🙂

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants