From 8a8d6be2b1ff59290d0625956ac094232caadf82 Mon Sep 17 00:00:00 2001 From: Bruce Forstall Date: Wed, 13 Sep 2023 14:55:43 -0700 Subject: [PATCH] Fix assert about maximum fragment split size 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 c85724f9240b98..039e3395da00cc 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); } /*****************************************************************************