From 44987dfc35d65982e0124659c19b28879982de70 Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Thu, 15 Nov 2018 23:11:28 -0800 Subject: [PATCH] Add workaround for https://github.com/dotnet/coreclr/issues/21051 Commit migrated from https://github.com/dotnet/coreclr/commit/ce7b0d76090ea5306aad983d9e7b5178fcb7b9fb --- .../src/System/Globalization/CharUnicodeInfo.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libraries/System.Private.CoreLib/src/System/Globalization/CharUnicodeInfo.cs b/src/libraries/System.Private.CoreLib/src/System/Globalization/CharUnicodeInfo.cs index 42b6b6e..354785b 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Globalization/CharUnicodeInfo.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Globalization/CharUnicodeInfo.cs @@ -145,6 +145,8 @@ namespace System.Globalization // // Note that for ch in the range D800-DFFF we just treat it as any other non-numeric character // + // Workaround for https://github.com/dotnet/coreclr/issues/21051 + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoOptimization)] internal static double InternalGetNumericValue(int ch) { Debug.Assert(ch >= 0 && ch <= 0x10ffff, "ch is not in valid Unicode range."); @@ -294,6 +296,8 @@ namespace System.Globalization // //////////////////////////////////////////////////////////////////////// + // Workaround for https://github.com/dotnet/coreclr/issues/21051 + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoOptimization)] internal static byte InternalGetCategoryValue(int ch, int offset) { Debug.Assert(ch >= 0 && ch <= 0x10ffff, "ch is not in valid Unicode range."); -- 2.7.4