Add RuntimeHelpers.IsReferenceOrContainsReferences<T>() (dotnet/coreclr#9541)
authorJan Kotas <jkotas@microsoft.com>
Mon, 13 Feb 2017 00:50:50 +0000 (16:50 -0800)
committerGitHub <noreply@github.com>
Mon, 13 Feb 2017 00:50:50 +0000 (16:50 -0800)
commit561d293cad8b4b8dcb1f6bdeee77fcdf07d5738d
tree11cb78f3f35be493c9f3ba1291cfd7641174a100
parentd27fc10d182f221e72698c6b8fb66aedbbc03406
Add RuntimeHelpers.IsReferenceOrContainsReferences<T>() (dotnet/coreclr#9541)

Rename JitHelpers.ContainsReferences<T>() to RuntimeHelpers.IsReferenceOrContainsReferences<T>() and make it public.

Work towards https://github.com/dotnet/corefx/issues/14047

Commit migrated from https://github.com/dotnet/coreclr/commit/7b66079154b3d703225fbd4cc680d4be537592a8
src/coreclr/src/mscorlib/src/System/Collections/Generic/List.cs
src/coreclr/src/mscorlib/src/System/ReadOnlySpan.cs
src/coreclr/src/mscorlib/src/System/Runtime/CompilerServices/RuntimeHelpers.cs
src/coreclr/src/mscorlib/src/System/Runtime/CompilerServices/jithelpers.cs
src/coreclr/src/mscorlib/src/System/Span.cs
src/coreclr/src/vm/jitinterface.cpp
src/coreclr/src/vm/mscorlib.h