Skip to content

Commit

Permalink
Remove spurious assertion check causing .NET Core crashes (#89986)
Browse files Browse the repository at this point in the history
* Remove spurious assertion check causing .NET Core crashes

Co-authored-by: Aaron Robinson <[email protected]>
Co-authored-by: Jan Kotas <[email protected]>
  • Loading branch information
3 people authored Aug 9, 2023
1 parent 0f0504d commit e7a9930
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2146,7 +2146,8 @@ private static unsafe nuint NarrowUtf16ToAscii_Intrinsified_256(char* pUtf16Buff
// 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);

Expand Down

0 comments on commit e7a9930

Please sign in to comment.