Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update runtime async spec #76872

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

333fred
Copy link
Member

@333fred 333fred commented Jan 22, 2025

Updates from the runtime side: dotnet/runtime#110420.

Updates from the runtime side: dotnet/runtime#110420.
@333fred 333fred requested a review from a team as a code owner January 22, 2025 23:35
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead labels Jan 22, 2025
@333fred
Copy link
Member Author

333fred commented Jan 22, 2025

@jcouv @jakobbotsch @VSadov @agocke, this is the expected Roslyn code-gen side of the intrinsic method await version. Please give it a look!

jcouv
jcouv previously approved these changes Jan 22, 2025
@jcouv jcouv self-assigned this Jan 23, 2025
@333fred 333fred dismissed jcouv’s stale review January 23, 2025 22:01

New changes

Translated C#:

```cs
System.Runtime.CompilerServices.RuntimeHelpers.Await(C.M<Task>());
Copy link
Member Author

Choose a reason for hiding this comment

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

@jakobbotsch @VSadov is it going to complicate the JIT's pattern matching significantly if we use this approach for generic methods like this? In the old specialized call version, we would have needed go to through UnsafeAwaitAwaiterFromRuntimeAsync, but since this now just appears to be Task-returning method, I'm hoping we can keep IL size down and just call Await.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers Feature - Runtime Async untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants