[netcore] Marshal.IsPinnable (#13628)
commitac2fb76ed0a01ca480abc0ca2e017dcd776761fd
authorEgor Bogatov <egorbo@gmail.com>
Mon, 25 Mar 2019 09:22:54 +0000 (25 11:22 +0200)
committerMarek Safar <marek.safar@gmail.com>
Mon, 25 Mar 2019 09:22:54 +0000 (25 10:22 +0100)
tree15890be871d04f84c92b3d3f1e2bfb7a0d47e079
parent47cc95bbb6831e018c14ffc6ecbe473e82c37ff9
[netcore] Marshal.IsPinnable (#13628)

Needed for MSBuild.
Stream changes were copied from [CoreRT](https://github.com/dotnet/corert/blob/master/src/System.Private.CoreLib/src/System/IO/Stream.CoreRT.cs).
IsPinnable - perhaps it should be an icall/intrinsics for better perf?
[CoreCLR impl for IsPinnable (InternalCall)](https://github.com/dotnet/coreclr/blob/1f3f474a13bdde1c5fecdf8cd9ce525dbe5df000/src/vm/marshalnative.cpp#L257)
[CoreRT impl for IsPinnable](https://github.com/dotnet/corert/blob/master/src/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshal.cs#L114) (and [MightBeBlittable](https://github.com/dotnet/corert/blob/master/src/System.Private.CoreLib/src/System/Runtime/InteropServices/InteropExtensions.cs#L60))
mcs/class/System.Private.CoreLib/System.IO/Stream.cs
mcs/class/System.Private.CoreLib/System.Runtime.InteropServices/Marshal.cs