From f260f2ba1c068a63da914285087b3772bf188978 Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Tue, 4 Jul 2017 07:45:31 -0700 Subject: [PATCH] Update to latest System.Memory Commit migrated from https://github.com/dotnet/coreclr/commit/f738e8861a5705dbd74a3088c0f4a1ee4e15935d --- src/coreclr/tests/src/JIT/Performance/CodeQuality/Span/SpanBench.cs | 4 ++-- src/coreclr/tests/src/JIT/config/benchmark/benchmark.csproj | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/coreclr/tests/src/JIT/Performance/CodeQuality/Span/SpanBench.cs b/src/coreclr/tests/src/JIT/Performance/CodeQuality/Span/SpanBench.cs index 5cb838f..c9a4c7b 100644 --- a/src/coreclr/tests/src/JIT/Performance/CodeQuality/Span/SpanBench.cs +++ b/src/coreclr/tests/src/JIT/Performance/CodeQuality/Span/SpanBench.cs @@ -1038,11 +1038,11 @@ namespace Span for (int i = 0; i < iterationCount; i++) { - var charSpan = s.AsSpan(); + var charSpan = s.AsReadOnlySpan(); // Under a condition that we know is false but the jit doesn't, // add a read from 'charSpan' to make sure it's not dead, and an assignment // to 's' so the AsBytes call won't get hoisted. - if (untrue) { sink.Data = charSpan[0]; s = "block hoisting the call to AsSpan()"; } + if (untrue) { sink.Data = charSpan[0]; s = "block hoisting the call to AsReadOnlySpan()"; } } } diff --git a/src/coreclr/tests/src/JIT/config/benchmark/benchmark.csproj b/src/coreclr/tests/src/JIT/config/benchmark/benchmark.csproj index f739151..d6d4a51 100644 --- a/src/coreclr/tests/src/JIT/config/benchmark/benchmark.csproj +++ b/src/coreclr/tests/src/JIT/config/benchmark/benchmark.csproj @@ -44,7 +44,7 @@ 4.4.0-beta-24913-02 - 4.4.0-preview2-25302-03 + 4.5.0-preview2-25504-02 4.4.0-preview2-25302-03 -- 2.7.4