ArrayPool fixes (#8774)
authorJan Kotas <jkotas@microsoft.com>
Tue, 3 Jan 2017 14:13:46 +0000 (06:13 -0800)
committerGitHub <noreply@github.com>
Tue, 3 Jan 2017 14:13:46 +0000 (06:13 -0800)
commit65b50f1143cc0b0f1523f62f9c048cb3c89d4afb
treefdafafb5f448695e883c6822b0065af3afc532fc
parent0bca3c16e17f199bd8734aa1e2579e8d07ffe560
ArrayPool fixes (#8774)

* Use Array.Empty<T>() to make the code identical to CoreRT copy
The internal EmptyArray<T> does not exist in CoreRT.
* Remove unnecessary helper type for lazy initialization
All generic types are beforefieldinit by design.
* Use | for clarity
src/mscorlib/corefx/System/Buffers/ArrayPool.cs
src/mscorlib/corefx/System/Buffers/ConfigurableArrayPool.cs
src/mscorlib/corefx/System/Buffers/TlsOverPerCoreLockedStacksArrayPool.cs
src/mscorlib/src/System/Environment.cs