[netcore] Use CoreRT's Overlapped (mono/mono#16106)
authorEgor Bogatov <egorbo@gmail.com>
Tue, 3 Sep 2019 20:22:04 +0000 (23:22 +0300)
committerSteve Pfister <steveisok@users.noreply.github.com>
Tue, 3 Sep 2019 20:22:04 +0000 (16:22 -0400)
commit8398e5e6c53b564d628888965b4cda8625be059b
tree97d1c9c1702870874ddc4bad50407691f6936a9a
parent66827c68dcd765ac3b2430cc84d02337e88edfb0
[netcore] Use CoreRT's Overlapped (mono/mono#16106)

Made it Nullability friendly

Interop.MemFree  -> Marshal.FreeHGlobal
Interop.MemAlloc -> Marshal.AllocHGlobal

Fixes https://github.com/mono/mono/issues/15308
Fixes https://github.com/mono/mono/issues/15310

Also, copy ThreadPoolBoundHandle.PlatformNotSupported.cs

Commit migrated from https://github.com/mono/mono/commit/625af20cefcc3944fa10f341329ff40fc9e27694
src/mono/netcore/CoreFX.issues.rsp
src/mono/netcore/System.Private.CoreLib/resources/SR.cs
src/mono/netcore/System.Private.CoreLib/src/System.Threading/Overlapped.cs
src/mono/netcore/System.Private.CoreLib/src/System.Threading/ThreadPoolBoundHandle.cs