From 385247e92abb34d424578921b4b1dcce81ad7c3a Mon Sep 17 00:00:00 2001 From: Bruce Forstall Date: Wed, 13 Sep 2023 23:20:00 -0700 Subject: [PATCH] Fix assert about maximum fragment split size (#92027) We want to support arbitrary `DOTNET_JitSplitFunctionSize` values for stressing the unwind fragment splitting logic, but there are limitations to the smallest size that can be split. Thus, we can exceed a specified minimum. Loosen an assert that the last fragment be less than the specified split size, since it might exceed that minimum, e.g., by being a large epilog. Leave the assert specifying the hard requirement of maximum fragment size. --- src/coreclr/jit/emit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coreclr/jit/emit.cpp b/src/coreclr/jit/emit.cpp index c85724f9240b9..039e3395da00c 100644 --- a/src/coreclr/jit/emit.cpp +++ b/src/coreclr/jit/emit.cpp @@ -3143,7 +3143,7 @@ void emitter::emitSplit(emitLocation* startLoc, } // end for loop splitIfNecessary(); - assert(curSize < maxSplitSize); + assert(curSize < UW_MAX_FRAGMENT_SIZE_BYTES); } /*****************************************************************************