Reduce thread count on 32-bit in GetTotalAllocatedBytes.TestAnotherThread#127583
Open
Reduce thread count on 32-bit in GetTotalAllocatedBytes.TestAnotherThread#127583
Conversation
…nd re-enable on Arm Agent-Logs-Url: https://github.com/dotnet/runtime/sessions/387e1f63-2703-4397-926b-29c580094fd8 Co-authored-by: VSadov <8218165+VSadov@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix test failure in GetTotalAllocatedBytes.cmd
Reduce thread count on 32-bit in GetTotalAllocatedBytes.TestAnotherThread
Apr 29, 2026
Contributor
|
Tagging subscribers to this area: @JulieLeeMSFT, @dotnet/gc |
VSadov
approved these changes
Apr 29, 2026
mangod9
approved these changes
Apr 30, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Reduces intermittent OutOfMemoryException failures in the GC/API/GC/GetTotalAllocatedBytes test on 32-bit Linux ARM by lowering the amount of thread creation pressure, and re-enables the test on ARM by removing an ActiveIssue suppression.
Changes:
- Cap the thread-creation loop in
TestAnotherThreadto 100 iterations on 32-bit processes (keep 1000 on 64-bit). - Remove the ARM-specific
[ActiveIssue(... IsArm)]suppression so the test runs on ARM again.
This was referenced Apr 30, 2026
Open
janvorli
approved these changes
Apr 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GC/API/GC/GetTotalAllocatedBytesintermittently fails withOutOfMemoryExceptionon linux-arm Checked jitstress: rapidly creating 1000 threads exhausts the 32-bit address space.Changes
src/tests/GC/API/GC/GetTotalAllocatedBytes.csTestAnotherThread: cap the inner thread-creation loop at 100 on 32-bit (IntPtr.Size == 4); 64-bit keeps the original 1000.[ActiveIssue(..., IsArm)]suppression so the test runs on 32-bit ARM again.Note
This PR description and the contained changes were generated with assistance from GitHub Copilot.