[Fix issue https://github.com/dotnet/coreclr/issues/2379]
authorPallavi Taneja <pallavit@microsoft.com>
Fri, 15 Jan 2016 00:58:21 +0000 (16:58 -0800)
committerPallavi Taneja <pallavit@microsoft.com>
Fri, 15 Jan 2016 00:58:21 +0000 (16:58 -0800)
commita80c07a6b0503e254aae3d6fe323eb9e7f815b91
tree7430e8746bd198d884ba5cf502e443f6ae211d0d
parentff05597e5a09e0b5a25adb45c68c5deb392bdd03
[Fix issue https://github.com/dotnet/coreclr/issues/2379]

When retuning the args from the host we return the same array to all the callers causing changes done
by one reflected to the other caller. Adding Array.Clone() to mitigate the issue.
I will add the tests for these in corefx repro once they can be consumed there.

[tfs-changeset: 1565211]
src/mscorlib/src/System/Environment.cs