From: Ben Adams Date: Thu, 20 Apr 2017 22:58:31 +0000 (+0100) Subject: Inline List.Clear (dotnet/coreclr#11104) X-Git-Tag: submit/tizen/20210909.063632~11030^2~7178 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e13cc1e59baf7339f14bead265443525ed3e3f09;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Inline List.Clear (dotnet/coreclr#11104) Commit migrated from https://github.com/dotnet/coreclr/commit/91b84a6695d1a77478fc77de9d393c7b26312dd3 --- diff --git a/src/coreclr/src/mscorlib/src/System/Collections/Generic/List.cs b/src/coreclr/src/mscorlib/src/System/Collections/Generic/List.cs index 67d1668..4e48088 100644 --- a/src/coreclr/src/mscorlib/src/System/Collections/Generic/List.cs +++ b/src/coreclr/src/mscorlib/src/System/Collections/Generic/List.cs @@ -350,6 +350,7 @@ namespace System.Collections.Generic // Clears the contents of List. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Clear() { if (RuntimeHelpers.IsReferenceOrContainsReferences())