Skip to content

Commit 0923e83

Browse files
Temporarily disable arm64-intrin. UTF-16 validation (#42052)
1 parent 0a324ed commit 0923e83

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/libraries/System.Private.CoreLib/src/System/Text/Unicode/Utf16Utility.Validation.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@ static Utf16Utility()
7979
long tempUtf8CodeUnitCountAdjustment = 0;
8080
int tempScalarCountAdjustment = 0;
8181

82-
if ((AdvSimd.Arm64.IsSupported && BitConverter.IsLittleEndian) || Sse2.IsSupported)
82+
// Per https://github.com/dotnet/runtime/issues/41699, temporarily disabling
83+
// ARM64-intrinsicified code paths. ARM64 platforms may still use the vectorized
84+
// non-intrinsicified 'else' block below.
85+
86+
if (/* (AdvSimd.Arm64.IsSupported && BitConverter.IsLittleEndian) || */ Sse2.IsSupported)
8387
{
8488
if (inputLength >= Vector128<ushort>.Count)
8589
{

0 commit comments

Comments
 (0)