Skip to content

Commit 0db582b

Browse files
committed
Don't define HAS_CUSTOM_BLOCKS on mono
This change was originally made here in dotnet#106764, but was reverted due to performance issues on AOT and interp environments. Since we only use Mono in a JIT environment, we can safely reapply this change. Issue to track the underlying issue on Mono: dotnet#106822
1 parent a6ca0c1 commit 0db582b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#if TARGET_AMD64 || TARGET_ARM64 || (TARGET_32BIT && !TARGET_ARM) || TARGET_LOONGARCH64
4+
#if !MONO && (TARGET_AMD64 || TARGET_ARM64 || (TARGET_32BIT && !TARGET_ARM) || TARGET_LOONGARCH64)
55
// JIT is guaranteed to unroll blocks up to 64 bytes in size
66
#define HAS_CUSTOM_BLOCKS
77
#endif

0 commit comments

Comments
 (0)