From: Aaron Robinson Date: Thu, 24 Oct 2019 23:43:34 +0000 (-0700) Subject: Retarget SuppressGCTransitionAttribute to System.Runtime instead of SPCL. (dotnet... X-Git-Tag: submit/tizen/20210909.063632~11030^2~250 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a919e0abfef78411ac378056a32da9c7f75b6c33;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Retarget SuppressGCTransitionAttribute to System.Runtime instead of SPCL. (dotnet/coreclr#27419) Commit migrated from https://github.com/dotnet/coreclr/commit/5c88b29d1bf3b33359ff5f7248e02a8109cbaba3 --- diff --git a/src/coreclr/tests/src/Interop/PInvoke/Attributes/SuppressGCTransition/SuppressGCTransitionTest.cs b/src/coreclr/tests/src/Interop/PInvoke/Attributes/SuppressGCTransition/SuppressGCTransitionTest.cs index 61ce797d6c1..e803ff905c3 100644 --- a/src/coreclr/tests/src/Interop/PInvoke/Attributes/SuppressGCTransition/SuppressGCTransitionTest.cs +++ b/src/coreclr/tests/src/Interop/PInvoke/Attributes/SuppressGCTransition/SuppressGCTransitionTest.cs @@ -9,8 +9,6 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TestLibrary; -using Console = Internal.Console; - static class SuppressGCTransitionNative { [DllImport(nameof(SuppressGCTransitionNative), EntryPoint = "NextUInt")] diff --git a/src/coreclr/tests/src/Interop/PInvoke/Attributes/SuppressGCTransition/SuppressGCTransitionTest.csproj b/src/coreclr/tests/src/Interop/PInvoke/Attributes/SuppressGCTransition/SuppressGCTransitionTest.csproj index bed83eb1315..7e2a6dafc6e 100644 --- a/src/coreclr/tests/src/Interop/PInvoke/Attributes/SuppressGCTransition/SuppressGCTransitionTest.csproj +++ b/src/coreclr/tests/src/Interop/PInvoke/Attributes/SuppressGCTransition/SuppressGCTransitionTest.csproj @@ -2,7 +2,6 @@ Exe True - true diff --git a/src/coreclr/tests/src/Interop/PInvoke/Attributes/SuppressGCTransition/SuppressGCTransitionUtil.il b/src/coreclr/tests/src/Interop/PInvoke/Attributes/SuppressGCTransition/SuppressGCTransitionUtil.il index ca836d70387..31ffffc50f7 100644 --- a/src/coreclr/tests/src/Interop/PInvoke/Attributes/SuppressGCTransition/SuppressGCTransitionUtil.il +++ b/src/coreclr/tests/src/Interop/PInvoke/Attributes/SuppressGCTransition/SuppressGCTransitionUtil.il @@ -3,25 +3,25 @@ // See the LICENSE file in the project root for more information. .assembly extern mscorlib { } -.assembly extern System.Private.CoreLib { auto } +.assembly extern System.Runtime { auto } .assembly SuppressGCTransitionUtil { } .class public auto ansi beforefieldinit FunctionPointer - extends [System.Private.CoreLib]System.Object + extends [System.Runtime]System.Object { .method hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 - call instance void [System.Private.CoreLib]System.Object::.ctor() + call instance void [System.Runtime]System.Object::.ctor() ret } .method public hidebysig static int32 Call_NextUInt(native int fptr, int32* n) cil managed { - .custom instance void [System.Private.CoreLib]System.Runtime.InteropServices.SuppressGCTransitionAttribute::.ctor() = ( 01 00 00 00 ) + .custom instance void [System.Runtime]System.Runtime.InteropServices.SuppressGCTransitionAttribute::.ctor() = ( 01 00 00 00 ) .maxstack 8 ldarg.1 ldarg.0