Make block optimized ClearWithoutReferences fully shared (dotnet/coreclr#24312)
authorMarek Safar <marek.safar@gmail.com>
Tue, 30 Apr 2019 18:45:50 +0000 (20:45 +0200)
committerJan Kotas <jkotas@microsoft.com>
Tue, 30 Apr 2019 18:45:50 +0000 (11:45 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/0555dafead1c0362eb0a43a39c0f602e8b79ba56

src/libraries/System.Private.CoreLib/src/System/SpanHelpers.cs

index 511b857..12b8e26 100644 (file)
@@ -23,7 +23,7 @@ namespace System
             if (byteLength == 0)
                 return;
 
-#if CORECLR && (AMD64 || ARM64)
+#if !PROJECTN && (AMD64 || ARM64)
             // The exact matrix on when RhZeroMemory is faster than InitBlockUnaligned is very complex. The factors to consider include
             // type of hardware and memory aligment. This threshold was chosen as a good balance accross different configurations.
             if (byteLength > 768)