Processing dotnet/runtime#122983 (comment) command:
Command
-arm -amd
using System.Threading;
using BenchmarkDotNet.Attributes;
[MemoryDiagnoser]
public class Benchmark
{
static string _cachedValue = null;
[Benchmark]
public string EnsureInitialized_Old()
{
string defaultValue = "defaultValue";
return LazyInitializer.EnsureInitialized(ref _cachedValue, () => defaultValue);
}
}
(EgorBot will reply in this issue)