Beyond Runtime Async, the .NET 11 runtime brings a long list of changes: more modern hardware requirements, a JIT that removes more checks, new Arm and x86 intrinsics, CoreCLR on WebAssembly, in-process crash reports, faster NativeAOT interface dispatch and several reliability fixes. This article collects all of them, following the official documentation.
Minimum hardware requirements
.NET 11 requires more modern instruction sets on x86/x64 and Arm64, and updates the ReadyToRun (R2R) targets as well.
Arm64
| OS | JIT/AOT minimum | R2R target |
|---|---|---|
| Apple | Apple M1 (no change) | Apple M1 (no change) |
| Linux | armv8.0-a (no change) | from armv8.0-a to armv8.0-a + LSE |
| Windows | from armv8.0-a to armv8.0-a + LSE | from armv8.0-a to armv8.2-a + RCPC |
Linux still supports devices such as Raspberry Pi that may only offer AdvSimd; the new R2R target with LSE can add jitting overhead at launch. On Windows, the LSE baseline is required by Windows 11 and by all Arm64 CPUs officially supported by Windows 10, and it matches the Arm SBSA requirements.
x86/x64
| OS | JIT/AOT minimum | R2R target |
|---|---|---|
| Apple | from x86-64-v1 to x86-64-v2 | x86-64-v2 (no change) |
| Linux | from x86-64-v1 to x86-64-v2 | from x86-64-v2 to x86-64-v3 |
| Windows | from x86-64-v1 to x86-64-v2 | from x86-64-v2 to x86-64-v3 |
x86-64-v2 guarantees CX16, POPCNT, SSE3, SSSE3, SSE4.1 and SSE4.2 on top of CMOV, CX8, SSE and SSE2. x86-64-v3 adds AVX, AVX2, BMI1, BMI2, F16C, FMA, LZCNT and MOVBE. On hardware that does not meet the baseline, .NET fails to run and may print "The current CPU is missing one or more of the baseline instruction sets". The stated reason is to reduce maintenance complexity and align with the requirements of the underlying operating systems.
JIT improvements
- Bounds checks: eliminated for the
i + cns < lenpattern, with more redundant checks removed for index-from-end access (values[^1]); after a!span.IsEmptyguard, the check onspan[0]disappears. - Redundant checked contexts: the JIT proves and removes them when a value is already in range.
- Switch expressions: multi-target switches over a small set of constants (such as
x is 0 or 1 or 2 or 3 or 4) fold into branchless checks. - Faster uint-to-float/double casts on pre-AVX-512 x86 hardware.
- Constant-folded SequenceEqual:
string.EqualsandReadOnlySpan<T>.SequenceEqualwith constant operands becometrueorfalse; this covers string literals,const stringfields and UTF-8 literals such as"PNG"u8. - Devirtualization: generic virtual methods (including shared ones that need no runtime lookup), default interface methods on generic interfaces, and the result of
Activator.CreateInstance<T>()treated as an exact type. This unlocks inlining and constant folding. - Redundant branches and tests: removed when an outer predicate is implied by an inner branch, or when a value assigned in a conditional is tested right away.
Math.BigMul(long, long, out long)on x64: a singleMUL r/m64instruction, with no helper call.- Prolog: the restriction that it fit in a single instruction group was removed.
- SELECT(cond, cns, cns): when both branches produce the same constant, the JIT uses that constant directly.
- Saturating conversions: unchecked float and double conversions to small integer types saturate to the type bounds instead of wrapping.
Vector<T>on Arm64 with SVE: passed by reference, matching the Arm calling convention for scalable types.
Hardware intrinsics and code generation
- Arm SVE2: new
ShiftRightLogicalNarrowingSaturate(Even|Odd)intrinsics;CreateWhilegains signed, double and single variants; the runtime now reports SVE_AES, SVE_SHA3, SVE_SM4, SHA3 and SM4 as separate instruction sets, queryable throughSve2*.IsSupported. - AVX-VNNI-512:
System.Runtime.Intrinsics.X86.AvxVnni.V512exposes the 512-bit forms of the multiply-add intrinsics on CPUs with AVX512-VNNI. - Hardware FP16 for
Half: on x64, arithmetic uses AVX10.1 and conversions tofloatcan use F16C; on Arm64, arithmetic uses the optional FP16 instruction set and conversions use baseline instructions. No app changes are needed and the ABI representation ofHalfis preserved. - x86/x64 SIMD cost model: costs updated for modern SSE/AVX instead of x87-era assumptions, improving hoisting and CSE decisions.
- Faster
DotProducton AVX: a mul + permute + add sequence instead ofvdpps/vdppd. - Arm64:
Vector*.Count,IndexOfandLastIndexOf(IndexOfAnyAsciiSearcher) no longer go throughExtractMostSignificantBits, giving a 5-50% improvement in workloads that use them in their core loop;ToScalaronVector*<long>andVector*<ulong>usesfmovinstead ofumov. - AVX10: fixed a bug where the CPUID-bit cache was overwritten by a later query, which could misreport AVX10 on capable hardware.
SIMD lane APIs
System.Runtime.Intrinsics adds APIs to build a vector from individually specified lanes and to extract or reorder lanes between vectors, available on Vector64<T>, Vector128<T>, Vector256<T>, Vector512<T> and Vector<T>:
- patterned construction:
CreateGeometricSequence,CreateAlternatingSequence,CreateHarmonicSequence; - interleave and de-interleave:
Zip,ZipLower/ZipUpper,Unzip,UnzipEven/UnzipOdd; - rearrangement: the
Concatfamily (ConcatLowerLower,ConcatLowerUpper,ConcatUpperLower,ConcatUpperUpper) andReverse.
// {1, 2, 4, 8}: each lane is the previous lane times two
Vector128<int> powers = Vector128.CreateGeometricSequence(1, 2);
// Interleave two vectors lane by lane
(Vector128<int> lower, Vector128<int> upper) =
Vector128.Zip(Vector128.Create(1), Vector128.Create(2));
ReadyToRun and VM
- R2R:
Comparer<T>.DefaultandEqualityComparer<T>.Defaultare specialized in R2R images, mirroring NativeAOT. Previously they relied on reflection R2R could not see ahead of time, so callers fell back to the JIT; collection operations that use the default comparers improve by up to 20x. - Cached interface dispatch on platforms without JIT support, such as iOS: up to 200x improvement in interface-heavy code.
Guid.NewGuid()on Linux: uses thegetrandom()syscall with batch caching instead of/dev/urandom, for roughly 12% more throughput.- More than 1024 CPUs: the runtime can initialize on machines with more than 1024 logical processors by allocating the CPU set dynamically. The GC keeps its 1024-heap limit.
CoreCLR on WebAssembly
- The runtime can load WebCIL payloads directly; WebCIL V1 (header grows from 28 to 32 bytes with a
TableBasefield) is the default for CoreCLR WASM builds, and both Mono and CoreCLR readers accept V0 and V1. - Better symbols and stack traces for debugging.
float[],Span<float>andArraySegment<float>are marshaled more directly across JavaScript boundaries.- Native re-link works: a full Emscripten-based pipeline replaces the stub targets, so you can re-link
dotnet.native.wasmand include custom native code withNativeFileReference. - Browser CoreCLR Release builds ship minified JavaScript.
- NativeAOT publish for WASM no longer drops satellite assemblies from NuGet packages, which fixes localization (for example with System.CommandLine).
- CoreCLR on WebAssembly now runs the libraries test suite end to end.
In-process crash reports
A new mechanism captures diagnostic information from inside the crashing process before it terminates, logging the managed stack trace, the module list and key runtime state to a well-known path. It originated on mobile platforms and is now also available on Linux and macOS. When DOTNET_DbgEnableMiniDump is not enabled, set DOTNET_EnableCrashReport=1 or DOTNET_EnableCrashReportOnly=1; existing createdump behavior stays in place when minidumps are enabled.
NativeAOT: interface dispatch
- Interface method calls go through a shared helper that can be patched after the call site warms up, giving smaller binaries and better throughput.
- Generic virtual methods use the same shared dispatch-cell infrastructure, improving monomorphic and polymorphic calls.
Assembly.GetCallingAssembly()now works on NativeAOT when stack trace data is available.
File locking on iOS and tvOS
On iOS and tvOS, simulators included, CoreCLR now disables advisory file locking by default: a FileStream holding an advisory lock could cause the operating system to terminate an app that moved to the background. As a result, FileShare restrictions are no longer enforced by those locks, even between handles in the same process. Mac Catalyst and other platforms keep their defaults. To restore locking, accepting the risk of suspension-related termination, set DOTNET_SYSTEM_IO_DISABLEFILELOCKING=0 or the System.IO.DisableFileLocking property to false in runtimeconfig.json.
Reliability and diagnostics
- Linux: the SDK no longer crashes on RHEL 8 on Arm64, and the runtime correctly traverses cgroup v2 memory limits at the root of the hierarchy.
- Array marshalling to native code now produces correct values and avoids unexpected exceptions.
- Sharing Unix named mutexes with older .NET processes no longer causes spurious abandoned-mutex errors.
- macOS: terminating a process tree no longer hangs.
- Generic virtual method dispatch no longer hangs after repeated
AssemblyLoadContextunloads. TryDequeueandTryPeekno longer spuriously report an empty queue while a segment freezes during growth.- Windows: garbage collection works correctly on machines with multiple CPU groups.
- Diagnostics: improved interpreter perf-map logging, and a fix for parsing
CORECLR_NOTIFICATION_PROFILERSlists that do not end with a semicolon.
Sources
Comments (0)
No comments yet.