Skip lock in GetMemory/GetSpan if memory available (dotnet/corefx#35234)
authorBen Adams <thundercat@illyriad.co.uk>
Sun, 17 Feb 2019 15:40:48 +0000 (15:40 +0000)
committerDavid Fowler <davidfowl@gmail.com>
Sun, 17 Feb 2019 15:40:48 +0000 (07:40 -0800)
commit6fae6a2955b0a63bb827d0de25e974f9aff88a30
tree0f4ed9d8ab882a51c2cb41e8118c142334fb915c
parent273dfc08bdb47e844c8a18d001be43ee86cd9b30
Skip lock in GetMemory/GetSpan if memory available (dotnet/corefx#35234)

Commit migrated from https://github.com/dotnet/corefx/commit/c8f93fdd5e5f32ba854782714531af6737e5e26c
src/libraries/System.IO.Pipelines/src/System/IO/Pipelines/Pipe.cs