From: Jan Kotas Date: Thu, 9 Feb 2017 01:26:37 +0000 (-0800) Subject: Delete unnecessary domain sanity check (dotnet/coreclr#9420) X-Git-Tag: submit/tizen/20210909.063632~11030^2~8160 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=583d54e684b37a5a01a3364f43e730b154b6250c;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Delete unnecessary domain sanity check (dotnet/coreclr#9420) Commit migrated from https://github.com/dotnet/coreclr/commit/c876fe669aff20b9d73a314fada965e9c6eeb5c1 --- diff --git a/src/coreclr/src/mscorlib/src/System/Runtime/InteropServices/GcHandle.cs b/src/coreclr/src/mscorlib/src/System/Runtime/InteropServices/GcHandle.cs index 3eeb2f1..75e2b0f 100644 --- a/src/coreclr/src/mscorlib/src/System/Runtime/InteropServices/GcHandle.cs +++ b/src/coreclr/src/mscorlib/src/System/Runtime/InteropServices/GcHandle.cs @@ -70,7 +70,6 @@ namespace System.Runtime.InteropServices // Used in the conversion functions below. internal GCHandle(IntPtr handle) { - InternalCheckDomain(handle); m_handle = handle; } @@ -291,8 +290,6 @@ namespace System.Runtime.InteropServices internal static extern Object InternalCompareExchange(IntPtr handle, Object value, Object oldValue, bool isPinned); [MethodImplAttribute(MethodImplOptions.InternalCall)] internal static extern IntPtr InternalAddrOfPinnedObject(IntPtr handle); - [MethodImplAttribute(MethodImplOptions.InternalCall)] - internal static extern void InternalCheckDomain(IntPtr handle); // The actual integer handle value that the EE uses internally. private IntPtr m_handle;