Skip to content

Remove BypassReadyToRun attributes from AsyncHelpers#128626

Draft
Copilot wants to merge 1 commit into
mainfrom
copilot/remove-bypassreadytorun-attributes
Draft

Remove BypassReadyToRun attributes from AsyncHelpers#128626
Copilot wants to merge 1 commit into
mainfrom
copilot/remove-bypassreadytorun-attributes

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 27, 2026

Removes [BypassReadyToRun] from all runtime async helper methods in AsyncHelpers.cs and AsyncHelpers.CoreCLR.cs, now that the AOT/R2R typesystem supports MethodImpl.Async.

  • src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/AsyncHelpers.cs: dropped the attribute from all AwaitAwaiter / UnsafeAwaitAwaiter / Await(Task[/<T>]) / Await(ValueTask[/<T>]) / Await(ConfiguredTaskAwaitable...) overloads.
  • src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/AsyncHelpers.CoreCLR.cs: dropped the attribute from the CoreCLR-specific awaiter helpers.
  • Removed the now-stale // "BypassReadyToRun" is until AOT/R2R typesystem has support for MethodImpl.Async comment.

Co-authored-by: jakobbotsch <7887810+jakobbotsch@users.noreply.github.com>
Copilot AI requested review from Copilot and removed request for Copilot May 27, 2026 06:57
Copilot AI changed the title Remove BypassReadyToRun attributes from AsyncHelpers files Remove BypassReadyToRun attributes from AsyncHelpers May 27, 2026
Copilot AI requested a review from jakobbotsch May 27, 2026 06:57
@dotnet-policy-service
Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/area-system-runtime-compilerservices
See info in area-owners.md if you want to be subscribed.

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.

2 participants