Delete unnecessary domain sanity check (dotnet/coreclr#9420)
authorJan Kotas <jkotas@microsoft.com>
Thu, 9 Feb 2017 01:26:37 +0000 (17:26 -0800)
committerGitHub <noreply@github.com>
Thu, 9 Feb 2017 01:26:37 +0000 (17:26 -0800)
Commit migrated from https://github.com/dotnet/coreclr/commit/c876fe669aff20b9d73a314fada965e9c6eeb5c1

src/coreclr/src/mscorlib/src/System/Runtime/InteropServices/GcHandle.cs

index 3eeb2f1..75e2b0f 100644 (file)
@@ -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;