Skip to content

Commit e7a9930

Browse files
trylekAaronRobinsonMSFTjkotas
authored
Remove spurious assertion check causing .NET Core crashes (#89986)
* Remove spurious assertion check causing .NET Core crashes Co-authored-by: Aaron Robinson <arobins@microsoft.com> Co-authored-by: Jan Kotas <jkotas@microsoft.com>
1 parent 0f0504d commit e7a9930

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libraries/System.Private.CoreLib/src/System/Text/Ascii.Utility.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2146,7 +2146,8 @@ private static unsafe nuint NarrowUtf16ToAscii_Intrinsified_256(char* pUtf16Buff
21462146
// jumps as much as possible in the optimistic case of "all ASCII". If we see non-ASCII
21472147
// data, we jump out of the hot paths to targets at the end of the method.
21482148

2149-
Debug.Assert(Vector256.IsHardwareAccelerated, "Vector256 is required.");
2149+
// Commented out to workaround https://github.com/dotnet/runtime/issues/90265
2150+
// Debug.Assert(Vector256.IsHardwareAccelerated, "Vector256 is required.");
21502151
Debug.Assert(BitConverter.IsLittleEndian, "This implementation assumes little-endian.");
21512152
Debug.Assert(elementCount >= 2 * Vector256.Size);
21522153

0 commit comments

Comments
 (0)