From 38d48aabb979a91373de52e07334565456c8c5d3 Mon Sep 17 00:00:00 2001 From: Andrew Au Date: Wed, 10 Aug 2022 15:29:20 -0700 Subject: [PATCH] Move the XML comments from reference assembly to CoreCLR implementation --- .../System.Private.CoreLib/src/System/GC.CoreCLR.cs | 8 ++++++++ src/libraries/System.Runtime/ref/System.Runtime.cs | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/coreclr/System.Private.CoreLib/src/System/GC.CoreCLR.cs b/src/coreclr/System.Private.CoreLib/src/System/GC.CoreCLR.cs index 89f59b0b9e2e3..b965a4c5792ea 100644 --- a/src/coreclr/System.Private.CoreLib/src/System/GC.CoreCLR.cs +++ b/src/coreclr/System.Private.CoreLib/src/System/GC.CoreCLR.cs @@ -19,11 +19,19 @@ namespace System { + /// Specifies the behavior for a forced garbage collection. public enum GCCollectionMode { + /// The default setting for this enumeration, which is currently . Default = 0, + + /// Forces the garbage collection to occur immediately. Forced = 1, + + /// Allows the garbage collector to determine whether the current time is optimal to reclaim objects. Optimized = 2, + + /// Requests that the garbage collector decommit as much memory as possible. Aggressive = 3, } diff --git a/src/libraries/System.Runtime/ref/System.Runtime.cs b/src/libraries/System.Runtime/ref/System.Runtime.cs index 37b23579408a7..9b70d3f32134b 100644 --- a/src/libraries/System.Runtime/ref/System.Runtime.cs +++ b/src/libraries/System.Runtime/ref/System.Runtime.cs @@ -2608,19 +2608,11 @@ public static void WaitForPendingFinalizers() { } public static System.Collections.Generic.IReadOnlyDictionary GetConfigurationVariables() { throw null; } } - /// Specifies the behavior for a forced garbage collection. public enum GCCollectionMode { - /// The default setting for this enumeration, which is currently . Default = 0, - - /// Forces the garbage collection to occur immediately. Forced = 1, - - /// Allows the garbage collector to determine whether the current time is optimal to reclaim objects. Optimized = 2, - - /// Requests that the garbage collector decommit as much memory as possible. Aggressive = 3, }