Mark Span.Length as non-versionable
authorJan Kotas <jkotas@microsoft.com>
Wed, 13 Sep 2017 03:30:30 +0000 (20:30 -0700)
committerJan Kotas <jkotas@microsoft.com>
Wed, 13 Sep 2017 17:08:32 +0000 (10:08 -0700)
commit745952e47e1a68c16806b72d19e5a59e00d47ae9
tree6151d625264190b654efc233a0e74fb3dae451f0
parente2f664c824b3cbd415f676c84c3cc4b1c8feaa81
Mark Span.Length as non-versionable

This allows inlining Span.Length accross versioning boundaries in R2R images. We are leaking the Span implementation details already because the Span indexer is treated as intrinsic. Marking a few more trivial methods as non-versionable should not do any future harm.
src/mscorlib/shared/System/ReadOnlySpan.cs
src/mscorlib/shared/System/Span.cs
src/mscorlib/src/System/ByReference.cs