Use ArrayPool for oversized allocations (dotnet/corefx#39643)
authorBen Adams <thundercat@illyriad.co.uk>
Tue, 30 Jul 2019 04:34:51 +0000 (05:34 +0100)
committerDavid Fowler <davidfowl@gmail.com>
Tue, 30 Jul 2019 04:34:51 +0000 (21:34 -0700)
commit4f844ebec37f52da5821e0d4431440f8d7dd5f75
tree511c6fb6fb84cd862a3c837ce32fb7cab1899ee9
parent777fa8bcbeab562ae94a19f7c0dd37a57c525a0f
Use ArrayPool for oversized allocations (dotnet/corefx#39643)

* Use ArrayPool for oversized allocations

Commit migrated from https://github.com/dotnet/corefx/commit/e7134de2b56bd1c4af0b5c58fe6e2cfdb8b72e5a
src/libraries/System.IO.Pipelines/src/System/IO/Pipelines/BufferSegment.cs
src/libraries/System.IO.Pipelines/src/System/IO/Pipelines/Pipe.cs
src/libraries/System.IO.Pipelines/src/System/IO/Pipelines/StreamPipeWriter.cs
src/libraries/System.IO.Pipelines/tests/PipePoolTests.nonnetstandard.cs
src/libraries/System.IO.Pipelines/tests/StreamPipeWriterTests.cs