Using AllocateUninitializedArray in array pool (#24504)
authorVladimir Sadov <vsadov@microsoft.com>
Tue, 28 May 2019 21:28:56 +0000 (14:28 -0700)
committerGitHub <noreply@github.com>
Tue, 28 May 2019 21:28:56 +0000 (14:28 -0700)
commit4ca032d49b0718eb40f2105f94db2b243cf94957
treeef089aa06f4a7bab2ecce888b9b191613caf45d4
parent2b08a111cc77d77221889700d169c9c636153355
Using AllocateUninitializedArray in array pool (#24504)

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

* reduce zeroing out when not necessary.

* use AllocateUninitializedArray in ArrayPool
src/System.Private.CoreLib/shared/System/Buffers/ConfigurableArrayPool.cs
src/System.Private.CoreLib/shared/System/Buffers/TlsOverPerCoreLockedStacksArrayPool.cs
src/System.Private.CoreLib/src/System/GC.cs
src/gc/gc.cpp