-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JIT: fix non-funclet EH empty finally/fault removal (#109361)
For non-funclet EH we don't use the handler index to constrain the placement of add code descs, but we were still recording the handler index in the ACD. This lead to some errors in ACD maintenance if there was an EH region being removed with an ACD in the try and an equivalent one in the handler. Fixes #108851
- Loading branch information
1 parent
a72cfb0
commit 86d2eaa
Showing
4 changed files
with
66 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
src/tests/JIT/Regression/JitBlue/Runtime_108851/Runtime_108851.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
// Generated by Fuzzlyn v2.4 on 2024-10-14 17:25:44 | ||
// Run on X86 Windows | ||
// Seed: 16789241273493732217-vectort,vector128,vector256,x86aes,x86avx,x86avx2,x86avx512bw,x86avx512bwvl,x86avx512cd,x86avx512cdvl,x86avx512dq,x86avx512dqvl,x86avx512f,x86avx512fvl,x86bmi1,x86bmi2,x86fma,x86lzcnt,x86pclmulqdq,x86popcnt,x86sse,x86sse2,x86sse3,x86sse41,x86sse42,x86ssse3,x86x86base | ||
// Reduced from 49.4 KiB to 0.5 KiB in 00:03:38 | ||
// Hits JIT assert in Release: | ||
// Assertion failed '!fgRngChkThrowAdded' in 'Program:Main(Fuzzlyn.ExecutionServer.IRuntime)' during 'Calculate stack level slots' (IL size 59; hash 0xade6b36b; FullOpts) | ||
// | ||
// File: D:\a\_work\1\s\src\coreclr\jit\flowgraph.cpp Line: 3655 | ||
// | ||
using System; | ||
using System.Numerics; | ||
using System.Runtime.Intrinsics; | ||
using System.Runtime.Intrinsics.X86; | ||
using Xunit; | ||
|
||
public class Runtime_108851 | ||
{ | ||
public static int[] s_21 = new int[1]; | ||
|
||
[Fact] | ||
public static void Problem() | ||
{ | ||
if (!Avx512F.IsSupported) | ||
{ | ||
return; | ||
} | ||
|
||
var vr1 = Vector128.Create<double>(0); | ||
if (Avx512F.ConvertToUInt32WithTruncation(vr1) >= 2894444111893762202L) | ||
{ | ||
try | ||
{ | ||
s_21[0] = 0; | ||
} | ||
finally | ||
{ | ||
s_21[0] = 0; | ||
} | ||
} | ||
|
||
s_21[0] = 0; | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
src/tests/JIT/Regression/JitBlue/Runtime_108851/Runtime_108851.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<Optimize>True</Optimize> | ||
<NoWarn>0652</NoWarn> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Compile Include="$(MSBuildProjectName).cs" /> | ||
</ItemGroup> | ||
</Project> |