summaryrefslogtreecommitdiff
path: root/src/vm/mscorlib.h
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2016-12-16 13:45:48 -0800
committerGitHub <noreply@github.com>2016-12-16 13:45:48 -0800
commita03946c9dfe90118e75110cd10f6369fc6cd90d4 (patch)
tree3a19a53971568e49af62176f190446757c921ea1 /src/vm/mscorlib.h
parent3d9598916c3b3750a02ec2a8e3e0108bf140bb61 (diff)
downloadcoreclr-a03946c9dfe90118e75110cd10f6369fc6cd90d4.tar.gz
coreclr-a03946c9dfe90118e75110cd10f6369fc6cd90d4.tar.bz2
coreclr-a03946c9dfe90118e75110cd10f6369fc6cd90d4.zip
Avoid Unsafe.AsRef in Span<T> implementation (#8657)
The JIT is not able to inline the current implementation of Unsafe.AsRef because of it has type mismatch on return. Change the the corelib Span to call Unsafe.As instead since fixing the type mismatch is not easy in the internal corelib version of Unsafe.AsRef.
Diffstat (limited to 'src/vm/mscorlib.h')
-rw-r--r--src/vm/mscorlib.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/vm/mscorlib.h b/src/vm/mscorlib.h
index 7a0b1a04f1..20d658b2e1 100644
--- a/src/vm/mscorlib.h
+++ b/src/vm/mscorlib.h
@@ -1353,7 +1353,6 @@ DEFINE_METHOD(JIT_HELPERS, CONTAINSREFERENCES, ContainsReferences,
DEFINE_CLASS(UNSAFE, CompilerServices, Unsafe)
DEFINE_METHOD(UNSAFE, AS_POINTER, AsPointer, NoSig)
DEFINE_METHOD(UNSAFE, SIZEOF, SizeOf, NoSig)
-DEFINE_METHOD(UNSAFE, AS_REF, AsRef, NoSig)
DEFINE_METHOD(UNSAFE, BYREF_AS, As, NoSig)
DEFINE_METHOD(UNSAFE, BYREF_ADD, Add, NoSig)
DEFINE_METHOD(UNSAFE, BYREF_ARE_SAME, AreSame, NoSig)