Process Iri_UnicodePlane3_13 test in 0x10000-character chunks#124486
Merged
Process Iri_UnicodePlane3_13 test in 0x10000-character chunks#124486
Conversation
Co-authored-by: MihaZupan <[email protected]>
Copilot
AI
changed the title
[WIP] Fix test failure due to OutOfMemoryException
Skip Iri_UnicodePlane3_13 test on 32-bit platforms to prevent OOM
Feb 16, 2026
Contributor
|
Tagging subscribers to this area: @karelz, @dotnet/ncl |
vcsjones
reviewed
Feb 17, 2026
src/libraries/System.Private.Uri/tests/FunctionalTests/IriTest.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: MihaZupan <[email protected]>
Copilot
AI
changed the title
Skip Iri_UnicodePlane3_13 test on 32-bit platforms to prevent OOM
Catch OOM in Iri_UnicodePlane3_13 test instead of skipping on 32-bit
Feb 23, 2026
Co-authored-by: MihaZupan <[email protected]>
Copilot
AI
changed the title
Catch OOM in Iri_UnicodePlane3_13 test instead of skipping on 32-bit
Process Iri_UnicodePlane3_13 test in 0x10000-character chunks
Feb 23, 2026
MihaZupan
reviewed
Feb 23, 2026
src/libraries/System.Private.Uri/tests/FunctionalTests/IriTest.cs
Outdated
Show resolved
Hide resolved
MihaZupan
approved these changes
Feb 23, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adjusts System.Private.Uri IRI functional testing to avoid OutOfMemoryExceptions on 32-bit platforms by reducing peak allocation size when exercising Unicode planes 3–13.
Changes:
- Updates
Iri_UnicodePlane3_13to iterate the range in 0x10000-sized chunks instead of building one very large input string.
rokonec
approved these changes
Feb 24, 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.
Description
Test
Iri_UnicodePlane3_13was failing with OOM on 32-bit platforms due to allocating ~720K characters (Unicode planes 3-13: 0x30000-0xDFFFF) in a single string.Changes
Changed test to process the range in 11 chunks of 0x10000 characters each:
Peak memory allocation reduced from ~720K to ~65K characters per iteration. Maintains identical test coverage with significantly improved reliability on memory-constrained platforms.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.