Remove allocations from Environment.GetResourceString (dotnet/coreclr#9194)
authorStephen Toub <stoub@microsoft.com>
Mon, 30 Jan 2017 16:37:27 +0000 (11:37 -0500)
committerJan Kotas <jkotas@microsoft.com>
Mon, 30 Jan 2017 16:37:27 +0000 (08:37 -0800)
commitf17b52457b9426eb79c3b30fa140c9a8791d5883
treee30353efca788d482317af360e1351c527073410
parent3f6ed3eceb969a7a1c5ff4ac60d3d648e553aa02
Remove allocations from Environment.GetResourceString (dotnet/coreclr#9194)

* Remove delegate allocations from ResourceHelper.GetResourceString

* Remove state object allocation from GetResourceString

Now that we're no longer using ExecuteCodeWithGuaranteedBackout, we don't need the try/catch/finally functionality separated out into separate methods, and thus we don't need to allocate an object to pass into them.

Commit migrated from https://github.com/dotnet/coreclr/commit/d1699dce65111fe44a85b35637b1f05a5b497f7e
src/coreclr/src/mscorlib/src/System/Environment.cs