Skip to content

Revert "[release/9.0-staging] Fix crash during Async Break when APC and CET are enabled" - #116015

Merged
thaystg merged 1 commit into
release/9.0-stagingfrom
revert-114932-dev/thays/backport_111408
Jun 2, 2025
Merged

Revert "[release/9.0-staging] Fix crash during Async Break when APC and CET are enabled"#116015
thaystg merged 1 commit into
release/9.0-stagingfrom
revert-114932-dev/thays/backport_111408

Conversation

@thaystg

Copy link
Copy Markdown
Member

Reverts #114932

CopilotAI review requested due to automatic review settings May 27, 2025 15:15

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

Reverts a previous commit that fixed a crash during Async Break when APC and CET are enabled, restoring the pre-change behavior.

  • Reintroduces the original flow by removing the additional APC handling code.
  • Adjusts function signatures and friend declarations to match the restored implementation.
  • Removes the SingleStepToExitApcCall functionality from multiple modules.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
FileDescription
src/coreclr/vm/threadsuspend.cppRemoved APC-related code blocks and reverted the HandleSuspensionForInterruptedThread signature.
src/coreclr/vm/threads.hRemoved friend declaration and commented out unused thread state flags related to APC handling.
src/coreclr/vm/dbginterface.hDeleted declaration of SingleStepToExitApcCall.
src/coreclr/debug/ee/debugger.h and .cppRemoved the implementation of SingleStepToExitApcCall.
src/coreclr/debug/ee/controller.cppEliminated the branch that handled TS_SSToExitApcCall logic during exception dispatch.

@jeffschwMSFTjeffschwMSFT left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

approved. this is a revert of a change that has not yet shipped as part of 9.0.x. we have already reverted in .NET 10 preview 5. please get a code review and merge when ready

@jeffschwMSFTjeffschwMSFT added this to the 9.0.x milestone Jun 2, 2025
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

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

@thaystg
thaystg merged commit c7e6e39 into release/9.0-stagingJun 2, 2025
@jkotas
jkotas deleted the revert-114932-dev/thays/backport_111408 branch June 8, 2025 13:03
@github-actionsgithub-actionsBot locked and limited conversation to collaborators Jul 9, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-Diagnostics-coreclrServicing-approvedApproved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@thaystg@jeffschwMSFT@tommcdon