Using AllocateUninitializedArray in array pool (dotnet/coreclr#24504)
commit76dee58018d5ac807cb0289e63d75c49189003c8
authorVladimir Sadov <vsadov@microsoft.com>
Tue, 28 May 2019 21:28:56 +0000 (28 14:28 -0700)
committerMarek Safar <marek.safar@gmail.com>
Wed, 29 May 2019 20:14:22 +0000 (29 22:14 +0200)
tree44ee0118a291e5c90cc8d4051dca6cab3b8876c9
parent3285e0519ee638aaf475c688447631c08a58dc5f
Using AllocateUninitializedArray in array pool (dotnet/coreclr#24504)

* Just use `new T[]` when elements are not pointer-free

* reduce zeroing out when not necessary.

* use AllocateUninitializedArray in ArrayPool

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
netcore/System.Private.CoreLib/shared/System/Buffers/ConfigurableArrayPool.cs
netcore/System.Private.CoreLib/shared/System/Buffers/TlsOverPerCoreLockedStacksArrayPool.cs