Move allocation of command line argument array to C# (#71021)
authorJan Kotas <jkotas@microsoft.com>
Tue, 21 Jun 2022 05:43:40 +0000 (22:43 -0700)
committerGitHub <noreply@github.com>
Tue, 21 Jun 2022 05:43:40 +0000 (22:43 -0700)
commit7ab7f83fb1bdfed781ceb8da066986184ac782a1
tree9fcc1537e7422fc0dabaffcf0ccb6da0f54fdf81
parent8a7930e5f75f5c1437619f2c77447f2184f5dd94
Move allocation of command line argument array to C# (#71021)

Also, avoid redundant allocation of managed string for each command line argument.
src/coreclr/System.Private.CoreLib/src/System/Environment.CoreCLR.cs
src/coreclr/nativeaot/System.Private.CoreLib/src/System/Environment.NativeAot.cs
src/coreclr/vm/corelib.h
src/coreclr/vm/corhost.cpp
src/coreclr/vm/metasig.h
src/libraries/System.Private.CoreLib/src/System/Environment.cs