Skip to content

Exclude DeadThreads test from GC stress compatible set#127478

Open
Copilot wants to merge 2 commits intomainfrom
copilot/fix-deadthreads-test-failure
Open

Exclude DeadThreads test from GC stress compatible set#127478
Copilot wants to merge 2 commits intomainfrom
copilot/fix-deadthreads-test-failure

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 27, 2026

Description

DeadThreads creates threads at a very high rate, making it unsuitable for GC stress runs where frequent GCs slow execution enough to cause OOM or excessive paging.

Changes

  • src/tests/baseservices/threading/DeadThreads/DeadThreads.csproj: Added <GCStressIncompatible>true</GCStressIncompatible> to opt the test out of GC stress (GCStress3/GCStressC) runs.

AI Generated Content Notice

Note

This PR description was generated by GitHub Copilot.

Copilot AI requested review from Copilot and removed request for Copilot April 27, 2026 23:00
Copilot AI requested review from Copilot and removed request for Copilot April 27, 2026 23:04
Copilot AI changed the title [WIP] Fix test failure in DeadThreads cmd execution Exclude DeadThreads test from GC stress compatible set Apr 27, 2026
Copilot AI requested a review from VSadov April 27, 2026 23:06
@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.

@VSadov VSadov marked this pull request as ready for review April 28, 2026 13:15
Copilot AI review requested due to automatic review settings April 28, 2026 13:15
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

This PR opts the DeadThreads test out of GC stress runs by marking it GC-stress incompatible, based on its very high thread-creation rate leading to OOM/excessive paging under GC stress.

Changes:

  • Mark DeadThreads as GC stress incompatible via <GCStressIncompatible>true</GCStressIncompatible>.
  • Add a short explanatory comment clarifying why the test is excluded from GC stress.

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.

Test failure: baseservices/threading/DeadThreads/DeadThreads/DeadThreads.cmd

3 participants