Move Marshal to shared partition (dotnet/coreclr#22146)
authorMarek Safar <marek.safar@gmail.com>
Fri, 25 Jan 2019 01:00:33 +0000 (02:00 +0100)
committerJan Kotas <jkotas@microsoft.com>
Fri, 25 Jan 2019 01:00:33 +0000 (17:00 -0800)
commit37c2958d0ed9d2fd90928e4c51b9b85d3d7a73b0
tree6b4c06ffd66775b72107a6af3f0b2445baa15a9e
parentbf7bbd13933fbe751fa956bf612487099d256074
Move Marshal to shared partition (dotnet/coreclr#22146)

* Move Marshal to shared partition

* Moved code optimizations

* Cosmetic changes

* Avoid duplicate arguments checks bys shipping Encoding.UTF8.GetString

Commit migrated from https://github.com/dotnet/coreclr/commit/ad03955be542a6ff2501481df676ce3d9e0f427f
src/coreclr/src/System.Private.CoreLib/System.Private.CoreLib.csproj
src/coreclr/src/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshal.CoreCLR.cs [moved from src/coreclr/src/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshal.cs with 62% similarity]
src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/ComEventsHelpers.NoCom.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshal.NoCom.cs [moved from src/coreclr/src/System.Private.CoreLib/src/System/Runtime/InteropServices/NonPortable.cs with 91% similarity]
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshal.Unix.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshal.Windows.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshal.cs [new file with mode: 0644]