Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert exception throwing JIT helpers to managed code. #105671

Merged
merged 13 commits into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions src/coreclr/System.Private.CoreLib/src/System/ThrowHelper.cs
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System.Buffers;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Numerics;
using System.Reflection;
using System.Runtime;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Intrinsics;
using System.Runtime.Serialization;
using System.Threading;

namespace System
{
Expand Down
16 changes: 14 additions & 2 deletions src/coreclr/vm/methodtable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5193,7 +5193,13 @@ void ThrowEntryPointNotFoundException(
MethodTable *pInterfaceMT,
MethodDesc *pInterfaceMD)
{
LIMITED_METHOD_CONTRACT;
CONTRACTL
{
THROWS;
GC_TRIGGERS;
MODE_PREEMPTIVE;
}
CONTRACTL_END;
AaronRobinsonMSFT marked this conversation as resolved.
Show resolved Hide resolved

SString assemblyName;

Expand Down Expand Up @@ -5400,7 +5406,13 @@ void ThrowAmbiguousResolutionException(
MethodTable *pInterfaceMT,
MethodDesc *pInterfaceMD)
{
LIMITED_METHOD_CONTRACT;
CONTRACTL
{
THROWS;
GC_TRIGGERS;
MODE_PREEMPTIVE;
}
CONTRACTL_END;
AaronRobinsonMSFT marked this conversation as resolved.
Show resolved Hide resolved

SString assemblyName;

Expand Down
Loading