From ba4c0bebef5988f8d1bd15b08dd1cb0fb7db4762 Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Wed, 31 Jan 2024 19:29:11 +0100 Subject: [PATCH] Disable inline TLS on linux-arm, it is not implemented (#97746) --- src/coreclr/tools/aot/ILCompiler/Program.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/coreclr/tools/aot/ILCompiler/Program.cs b/src/coreclr/tools/aot/ILCompiler/Program.cs index 28785e0ed0f175..53f32c4cc266ef 100644 --- a/src/coreclr/tools/aot/ILCompiler/Program.cs +++ b/src/coreclr/tools/aot/ILCompiler/Program.cs @@ -533,7 +533,8 @@ void RunScanner() // If we have a scanner, we can inline threadstatics storage using the information we collected at scanning time. if (!Get(_command.NoInlineTls) && - (targetOS == TargetOS.Linux || (targetArchitecture == TargetArchitecture.X64 && targetOS == TargetOS.Windows))) + ((targetOS == TargetOS.Linux && targetArchitecture is TargetArchitecture.X64 or TargetArchitecture.ARM64) || + (targetOS == TargetOS.Windows && targetArchitecture is TargetArchitecture.X64))) { builder.UseInlinedThreadStatics(scanResults.GetInlinedThreadStatics()); }