Move Marshal memory allocation methods into CoreLib shared partition (#41911)
authorJan Kotas <jkotas@microsoft.com>
Tue, 8 Sep 2020 04:51:03 +0000 (21:51 -0700)
committerGitHub <noreply@github.com>
Tue, 8 Sep 2020 04:51:03 +0000 (21:51 -0700)
commitd81b0662eb33acb135a83f49efebd6afb9682f51
tree600e35d6c183a02d0cda9611ff0126137271b174
parentc15455ab475385ce6641229c3e0211c305e58b8b
Move Marshal memory allocation methods into CoreLib shared partition (#41911)

* Move Marshal memory allocation methods into CoreLib shared partition

* Unify behavior across platforms
25 files changed:
src/coreclr/src/System.Private.CoreLib/System.Private.CoreLib.csproj
src/coreclr/src/System.Private.CoreLib/src/Interop/Unix/Interop.Libraries.cs
src/coreclr/src/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshal.CoreCLR.cs
src/coreclr/src/System.Private.CoreLib/src/System/StubHelpers.cs
src/coreclr/src/dlls/mscordac/mscordac_unixexports.src
src/coreclr/src/pal/inc/pal.h
src/coreclr/src/pal/inc/rt/palrt.h
src/coreclr/src/pal/src/memory/local.cpp
src/coreclr/src/palrt/comem.cpp
src/coreclr/src/vm/ecalllist.h
src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemAlloc.cs [new file with mode: 0644]
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.LocalAlloc.cs
src/libraries/Common/src/Interop/Windows/Ole32/Interop.CoTaskMemAlloc.cs
src/libraries/Common/src/Interop/Windows/OleAut32/Interop.SysAllocStringLen.cs
src/libraries/Native/Unix/System.Native/pal_memory.c
src/libraries/Native/Unix/System.Native/pal_memory.h
src/libraries/System.Net.Sockets/src/System.Net.Sockets.csproj
src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshal.Unix.cs
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshal.Windows.cs
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshal.cs
src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/ReAllocCoTaskMemTests.cs
src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/ReAllocHGlobalTests.cs
src/mono/mono/metadata/icall-def-netcore.h
src/mono/netcore/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshal.Mono.cs