镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Revert interpreter byref local zeroing in async methods - #136900

Open
jakobbotsch wants to merge 3 commits into
dotnet:mainfrom
jakobbotsch:revert-interp-continuation-zeroing-main
Open

jakobbotsch wants to merge 3 commits into
dotnet:mainfrom
jakobbotsch:revert-interp-continuation-zeroing-main

Conversation

@jakobbotsch

Copy link
Copy Markdown
Member

#136172 made the interpreter non-conforming here (aligning it with the JIT's behavior). The meaning of the spec is that byref-like locals are zeroed across suspension points, regardless of whether suspension actually happens or not, to make IL behavior simpler to reason about (especially around potential IL verification).

Zeroing of byref-like structs differs between the interpreter and the JIT when the await does not suspend (and is wrong in the JIT), so the test no longer covers Task.CompletedTask. Implementing this in the JIT is tracked by #115262.

Also spell out in the spec that this is the expected behavior of the zeroing.

Remove the assertion in the test that trips over the JIT's non-conformancy in this scenario.

…k case from Runtime_136000

Zeroing of byref-like structs differs between the interpreter and the JIT when the await does not suspend (and is wrong in the JIT), so the test no longer covers Task.CompletedTask.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 9fab45db-751c-46af-91fe-dae26f06fe20
…every suspension point

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 9fab45db-751c-46af-91fe-dae26f06fe20
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 4 pipeline(s).
11 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

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

@jakobbotsch

Copy link
Copy Markdown
Member Author

@VSadov Can you PTAL?

@jakobbotsch
jakobbotsch requested a review from VSadov November 12, 2026 13:52

This branch has not been deployed

No deployments
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