Skip to content

Disable runtime thread reinitilization check on Apple platforms - #134609

Merged
eduardo-vp merged 1 commit into
dotnet:mainfrom
eduardo-vp:disable-thread-check-macos
Sep 25, 2026
Merged

eduardo-vp merged 1 commit into
dotnet:mainfrom
eduardo-vp:disable-thread-check-macos

Conversation

@eduardo-vp

Copy link
Copy Markdown
Member

Disabling this check per #134571.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 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, @VSadov
See info in area-owners.md if you want to be subscribed.

Copilot AI 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.

Copilot review overview

🟡 Changes recommended

Apple thread cleanup and regression coverage need to be addressed.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 High severity · 1 Low severity

Open (2)
What changed in this PR

Disables the Apple thread-state reinitialization check and excludes the related macOS regression test.

Changes:

  • Bypasses CheckThreadStateNotDestroyed() on Apple.
  • Marks the regression test unsupported on macOS.
File Summary
src/​coreclr/​vm/​threads.cpp Apple re-entry requires explicit attach/detach handling or re-armed cleanup.
src/​tests/​baseservices/​threading/​ThreadStateDestroyed/​ThreadStateDestroyed.csproj Update Apple coverage to validate successful re-entry rather than excluding the test.

Comment thread src/coreclr/vm/threads.cpp
@eduardo-vp
eduardo-vp merged commit a5f96c5 into dotnet:main Sep 25, 2026
125 of 127 checks passed
@eduardo-vp
eduardo-vp deleted the disable-thread-check-macos branch September 25, 2026 00:32
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Sep 25, 2026
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