Avoid IntPtr[] allocation in Associates.AssignAssociates (#66825)
authorStephen Toub <stoub@microsoft.com>
Sat, 19 Mar 2022 12:19:11 +0000 (08:19 -0400)
committerGitHub <noreply@github.com>
Sat, 19 Mar 2022 12:19:11 +0000 (08:19 -0400)
commit637ede5f005fa97c24d0b72039469fa2f913b8ad
treeff3872984b0f95cea2292980a4dfcc756ef1af52
parent09e43903db12547cbecc4be047b28faec9127d74
Avoid IntPtr[] allocation in Associates.AssignAssociates (#66825)

* Avoid IntPtr[] allocation in Associates.AssignAssociates

* Address PR feedback (and as a result use stack space in a few more related places)
src/coreclr/System.Private.CoreLib/src/System/Reflection/Associates.cs
src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeHelpers.CoreCLR.cs
src/coreclr/System.Private.CoreLib/src/System/RuntimeHandles.cs