Clean up shared ArrayPool naming and add some env var config (#86109)
* Clean up shared ArrayPool naming and add some env var config
We've had several requests to be able to tweak / experiment with how many arrays the shared array pool might store. This adds two environment variables, one that controls the number of partitions the shared pool uses, and one that controls the number of arrays cacheable in each partition. Previously these values were constants.
As part of doing that, I needed to choose names that were a bit more palatable for external consumption, and I renamed thngs in the implementation accordingly.
* Rename file to SharedArrayPool.cs
* Fix naming scheme
* Avoid using globalization
* Avoid using Environment.GetEnvironmentVariable
* Move nopool env var into Environment
* Move static readonly fields to statics type