Use ArrayPool for PathHelper
authorJan Kotas <jkotas@microsoft.com>
Wed, 21 Dec 2016 23:46:53 +0000 (15:46 -0800)
committerJan Kotas <jkotas@microsoft.com>
Wed, 4 Jan 2017 15:19:43 +0000 (07:19 -0800)
commit9ad209e8aa6e0f7c64fa7d8da238d4074ef7bc3a
treeedbd23118a2d1357d61c6af61f617ff48f790c11
parentfb01a98245ea734000f287799cdff4657e552feb
Use ArrayPool for PathHelper

Replace special unmanaged memory pool used by PathHelper by shared ArrayPool. Custom memory pools are not good for global system performance, and the particular implementation of the unmanaged memory pool was also problematic for CoreRT port because of its dependencies.
12 files changed:
src/mscorlib/corefx/Interop/Windows/mincore/Interop.GetFullPathNameW.cs
src/mscorlib/corefx/Interop/Windows/mincore/Interop.GetLongPathNameW.cs
src/mscorlib/corefx/System/IO/PathHelper.Windows.cs
src/mscorlib/corefx/System/IO/PathInternal.Windows.StringBuffer.cs
src/mscorlib/corefx/System/IO/PathInternal.Windows.cs
src/mscorlib/corefx/System/Runtime/InteropServices/NativeBuffer.cs [deleted file]
src/mscorlib/corefx/System/Runtime/InteropServices/SafeHeapHandle.cs [deleted file]
src/mscorlib/corefx/System/Runtime/InteropServices/SafeHeapHandleCache.cs [deleted file]
src/mscorlib/corefx/System/Runtime/InteropServices/StringBuffer.cs
src/mscorlib/mscorlib.shared.sources.props
src/mscorlib/src/Microsoft/Win32/Win32Native.cs
src/mscorlib/src/System/IO/Directory.cs