Uh oh!
There was an error while loading. Please reload this page.
Pre-initialize InvariantCulture such that it can be safely used when creating stack traces - #129189
Conversation
There was a problem hiding this comment.
Pull request overview
This PR changes CoreCLR startup to proactively run System.Globalization.CultureInfo’s class initializer during AppDomain::SetupSharedStatics(), so CultureInfo.InvariantCulture is initialized before stack trace generation paths might try to use it under extreme memory pressure (avoiding the checked-build assert observed in #129159).
Changes:
- During default AppDomain startup, force
CultureInfoclass initialization viaCheckRunClassInitThrowing(). - Add a targeted comment documenting the motivation (stack trace creation under high memory pressure).
eduardo-vp
commented
Jun 9, 2026
/azp list |
eduardo-vp
commented
Jun 9, 2026
/azp run runtime-coreclr outerloop |
|
Azure Pipelines successfully started running 1 pipeline(s). |
eduardo-vp
commented
Jun 10, 2026
/azp run runtime-coreclr outerloop |
|
Azure Pipelines successfully started running 1 pipeline(s). |
eduardo-vp
commented
Jun 10, 2026
/azp run runtime-coreclr outerloop |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
eduardo-vp
commented
Jun 17, 2026
/azp run runtime-coreclr outerloop |
|
Azure Pipelines successfully started running 1 pipeline(s). |
eduardo-vp
commented
Jun 18, 2026
/ba-g timeouts only |
Uh oh!
There was an error while loading. Please reload this page.
…creating stack traces (#129189) The following assert is being hit when creating the stack trace in the test. https://github.com/dotnet/runtime/blob/89cd18abdedc793529c655f4d15cd8fad30927a6/src/libraries/System.Private.CoreLib/src/System/Globalization/CultureInfo.cs#L444-L451Fixes#129159. --------- Co-authored-by: Eduardo Velarde <evelardepola@microsoft.com> Co-authored-by: Jan Kotas <jkotas@microsoft.com>
The following assert is being hit when creating the stack trace in the test.
runtime/src/libraries/System.Private.CoreLib/src/System/Globalization/CultureInfo.cs
Lines 444 to 451 in 89cd18a
Fixes#129159.