Fix reference types (#6954)
authorJan Kotas <jkotas@microsoft.com>
Mon, 29 Aug 2016 06:18:11 +0000 (23:18 -0700)
committerJan Kotas <jkotas@microsoft.com>
Mon, 31 Oct 2016 00:27:31 +0000 (17:27 -0700)
commite7dfda575898129eb77a3a8541990c43c4e29149
tree885188360a88c9c7ed43472a6b6e994928fddc7d
parent9c7c1b741b132cd78bfc9db2654227bc2aec2e45
Fix reference types (#6954)

- Generic ArrayPinningHelper resulted into incorrect array data offset for reference types. Use non-generic one instead.
- Add array covariance checks to guarantee type safety.
src/mscorlib/src/System/Runtime/CompilerServices/jithelpers.cs
src/mscorlib/src/System/Span.cs
src/mscorlib/src/System/ThrowHelper.cs
src/vm/jitinterface.cpp
src/vm/mscorlib.h
tests/src/CoreMangLib/system/span/BasicSpanTest.cs