Skip to content

JIT: Write up general runtime async inlining details#127800

Open
jakobbotsch wants to merge 2 commits intodotnet:mainfrom
jakobbotsch:runtime-async-inlining-writeup
Open

JIT: Write up general runtime async inlining details#127800
jakobbotsch wants to merge 2 commits intodotnet:mainfrom
jakobbotsch:runtime-async-inlining-writeup

Conversation

@jakobbotsch
Copy link
Copy Markdown
Member

@jakobbotsch jakobbotsch commented May 5, 2026

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

Copilot AI review requested due to automatic review settings May 5, 2026 15:10
@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 May 5, 2026
Copy link
Copy Markdown
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

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 ExecutionContext and 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 AsyncLocal behavior.

Comment thread docs/design/coreclr/jit/runtime-async-inlining.md
Comment thread docs/design/coreclr/jit/runtime-async-inlining.md Outdated
Comment thread docs/design/coreclr/jit/runtime-async-inlining.md Outdated
Comment thread docs/design/coreclr/jit/runtime-async-inlining.md Outdated
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.

2 participants