You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[mono] JIT inline access to [ThreadStatic] fields doesn't run the class constructor #136592
Accessing a [ThreadStatic] field of a class with an explicit static constructor doesn't run the constructor in Mono JIT code. src/mono/mono/mini/method-to-ir.c emits the inline TLS access (is_special_static && thread_ins) without emit_class_init, unlike the other static-field paths.
Repro: src/tests/JIT/Regression_ro_2/Runtime_136480.cs returns (0, 0, 0) instead of (0, 0, 1) on the mono linux/windows/osx runtime-test lanes (build 1652778).
Found while fixing the CoreCLR counterpart, #136480 / #136535.
Activity
dotnet-policy-service commentedon Oct 28, 2026
Tagging subscribers to this area: @steveisok, @vitek-karas
See info in area-owners.md if you want to be subscribed.
Disable Runtime_136480 on Mono