Skip to content

Conversation

@MichalStrehovsky
Copy link
Member

  • The stub is static
  • The fake continuation method can act weird if the continuation owning method is on a generic type since we'll report the fake continuation method as homed on the same type. It can hit asserts expecting calling GetTypicalMethodDefinition will uninstantiate owning type. Make it so that this invariant holds.

Cc @dotnet/ilc-contrib

* The stub is static
* The fake continuation method can act weird if the continuation owning method is on a generic type since we'll report the fake continuation method as homed on the same type. It can hit asserts expecting calling `GetTypicalMethodDefinition` will uninstantiate owning type. Make it so that this invariant holds.
@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 addresses two correctness issues in the AsyncResumptionStub implementation:

Key Changes:

  • Adds the Static flag to the method signature of AsyncResumptionStub, correcting the method's calling convention
  • Implements proper generic type handling in ExplicitContinuationAsyncMethod by caching and returning the typical method definition, preventing assertion failures when continuation methods are on generic types

Copy link
Member

@jtschuster jtschuster left a comment

Choose a reason for hiding this comment

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

Thank you!

@MichalStrehovsky
Copy link
Member Author

/ba-g osx related brownout issues

@MichalStrehovsky MichalStrehovsky merged commit e079f83 into main Nov 20, 2025
89 of 101 checks passed
@MichalStrehovsky MichalStrehovsky deleted the MichalStrehovsky-patch-2 branch November 20, 2025 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants