From e7a993092612264016229e45d508cf071727518b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tom=C3=A1=C5=A1=20Rylek?= Date: Wed, 9 Aug 2023 20:59:35 +0200 Subject: [PATCH] Remove spurious assertion check causing .NET Core crashes (#89986) * Remove spurious assertion check causing .NET Core crashes Co-authored-by: Aaron Robinson Co-authored-by: Jan Kotas --- src/libraries/System.Private.CoreLib/src/System/Text/Ascii.Utility.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libraries/System.Private.CoreLib/src/System/Text/Ascii.Utility.cs b/src/libraries/System.Private.CoreLib/src/System/Text/Ascii.Utility.cs index ab55607..b6b8879 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Text/Ascii.Utility.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Text/Ascii.Utility.cs @@ -2146,7 +2146,8 @@ namespace System.Text // jumps as much as possible in the optimistic case of "all ASCII". If we see non-ASCII // data, we jump out of the hot paths to targets at the end of the method. - Debug.Assert(Vector256.IsHardwareAccelerated, "Vector256 is required."); + // Commented out to workaround https://github.com/dotnet/runtime/issues/90265 + // Debug.Assert(Vector256.IsHardwareAccelerated, "Vector256 is required."); Debug.Assert(BitConverter.IsLittleEndian, "This implementation assumes little-endian."); Debug.Assert(elementCount >= 2 * Vector256.Size); -- 2.7.4