Skip to content

Conversation

@jakobbotsch
Copy link
Member

Add ability for the VM to dynamically create continuation layout types and for the JIT to request such types to be created.

Add ability for the VM to dynamically create continuation layout types
and for the JIT to request such types to be created.
@github-actions github-actions bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Oct 4, 2025
@dotnet-policy-service
Copy link
Contributor

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

@davidwrighton davidwrighton requested a review from noahfalk October 7, 2025 23:22
Copy link
Member

@noahfalk noahfalk left a comment

Choose a reason for hiding this comment

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

This looks good to me modulo making RuntimeAsync on by default. If there is a need to get it on by default regardless of the diagnostics I'd suggest we do it in a separate PR.

Copy link
Member

@AndyAyersMS AndyAyersMS left a comment

Choose a reason for hiding this comment

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

JIT changes look good.

Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@noahfalk noahfalk left a comment

Choose a reason for hiding this comment

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

Ditto!

Copy link
Member

@VSadov VSadov left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!!

@jakobbotsch
Copy link
Member Author

Some numbers for the micro benchmark in #120865 (comment) that measures raw suspension/resumption performance, with 10 million iterations:

Before the change: Took 596.9 ms
After the change: Took 558.0 ms
Async1 for comparison: Took 332.1 ms

@jakobbotsch jakobbotsch merged commit c928a95 into dotnet:main Oct 18, 2025
148 of 150 checks passed
@jakobbotsch jakobbotsch deleted the tailored-continuation-layouts branch October 18, 2025 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants