summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAhson Khan <ahkha@microsoft.com>2018-03-25 17:26:12 -0700
committerGitHub <noreply@github.com>2018-03-25 17:26:12 -0700
commit63c96bcaaa0e6760c03908ad1f09ab7bbe39bce6 (patch)
tree22d38778944f74c993525bef3a1b0e42608d0058
parente673b00538cee4cf5ee4899bbadfc1d2287062e5 (diff)
downloadcoreclr-63c96bcaaa0e6760c03908ad1f09ab7bbe39bce6.tar.gz
coreclr-63c96bcaaa0e6760c03908ad1f09ab7bbe39bce6.tar.bz2
coreclr-63c96bcaaa0e6760c03908ad1f09ab7bbe39bce6.zip
Update use of AsBytes in perf tests to use MemoryMarshal.AsBytes. (#17214)
-rw-r--r--tests/src/JIT/Performance/CodeQuality/Span/SpanBench.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/src/JIT/Performance/CodeQuality/Span/SpanBench.cs b/tests/src/JIT/Performance/CodeQuality/Span/SpanBench.cs
index 10bb4c5f25..3acedaf187 100644
--- a/tests/src/JIT/Performance/CodeQuality/Span/SpanBench.cs
+++ b/tests/src/JIT/Performance/CodeQuality/Span/SpanBench.cs
@@ -960,7 +960,7 @@ namespace Span
for (int i = 0; i < iterationCount; i++)
{
- var byteSpan = span.AsBytes();
+ var byteSpan = MemoryMarshal.AsBytes(span);
// Under a condition that we know is false but the jit doesn't,
// add a read from 'byteSpan' to make sure it's not dead, and an assignment
// to 'span' so the AsBytes call won't get hoisted.