JIT: Write up general runtime async inlining details#127800
Open
jakobbotsch wants to merge 2 commits intodotnet:mainfrom
Open
JIT: Write up general runtime async inlining details#127800jakobbotsch wants to merge 2 commits intodotnet:mainfrom
jakobbotsch wants to merge 2 commits intodotnet:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new JIT design document that captures the proposed semantics for general runtime-async inlining. The doc is meant to guide future implementation work by spelling out how suspension, resumption, context flow, and exception handling would need to behave when async callees are inlined.
Changes:
- Introduces a new design note for preserving
ExecutionContextand continuation-context behavior across inlined runtime-async calls. - Describes a proposed
resumed_*model and post-inline IR needed to reconstruct logical async returns. - Adds worked examples covering synchronization-context and
AsyncLocalbehavior.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I expect to work on general inlining for runtime async over the next few weeks. This document writes down my thoughts around what needs to happen in the inlined code.
Mostly this is low level details for my own sake, but still cc @agocke @AndyAyersMS @VSadov @stephentoub.
Contributes to #127865