Skip to content

Commit e9464f7

Browse files
cshungcarlossanlop
andauthored
Delete the RequiresPreviewFeaturesAttribute from RefreshMemoryLimit (#91622) (#91688)
Co-authored-by: Carlos Sánchez López <[email protected]>
1 parent a303a07 commit e9464f7

File tree

4 files changed

+0
-6
lines changed

4 files changed

+0
-6
lines changed

src/coreclr/System.Private.CoreLib/src/System/GC.CoreCLR.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -899,13 +899,10 @@ internal enum RefreshMemoryStatus
899899
///
900900
/// This API will only handle configs that could be handled when the runtime is loaded, for example, for configs that don't have any effects on 32-bit systems (like the GCHeapHardLimit* ones), this API will not handle it.
901901
///
902-
/// As of now, this API is feature preview only and subject to changes as necessary.
903-
///
904902
/// <exception cref="InvalidOperationException">If the hard limit is too low. This can happen if the heap hard limit that the refresh will set, either because of new AppData settings or implied by the container memory limit changes, is lower than what is already committed.</exception>
905903
/// <exception cref="InvalidOperationException">If the hard limit is invalid. This can happen, for example, with negative heap hard limit percentages.</exception>
906904
///
907905
/// </summary>
908-
[RequiresPreviewFeatures("RefreshMemoryLimit is in preview.")]
909906
public static void RefreshMemoryLimit()
910907
{
911908
ulong heapHardLimit = (AppContext.GetData("GCHeapHardLimit") as ulong?) ?? ulong.MaxValue;

src/coreclr/nativeaot/System.Private.CoreLib/src/System/GC.NativeAot.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,6 @@ public static TimeSpan GetTotalPauseDuration()
869869
return new TimeSpan(RuntimeImports.RhGetTotalPauseDuration());
870870
}
871871

872-
[System.Runtime.Versioning.RequiresPreviewFeaturesAttribute("RefreshMemoryLimit is in preview.")]
873872
public static void RefreshMemoryLimit()
874873
{
875874
ulong heapHardLimit = (AppContext.GetData("GCHeapHardLimit") as ulong?) ?? ulong.MaxValue;

src/libraries/System.Runtime/ref/System.Runtime.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2722,7 +2722,6 @@ public static void SuppressFinalize(object obj) { }
27222722
public static void WaitForPendingFinalizers() { }
27232723
public static TimeSpan GetTotalPauseDuration() { throw null; }
27242724
public static System.Collections.Generic.IReadOnlyDictionary<string, object> GetConfigurationVariables() { throw null; }
2725-
[System.Runtime.Versioning.RequiresPreviewFeaturesAttribute("RefreshMemoryLimit is in preview.")]
27262725
public static void RefreshMemoryLimit() { throw null; }
27272726
}
27282727

src/mono/System.Private.CoreLib/src/System/GC.Mono.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,6 @@ public static System.Collections.Generic.IReadOnlyDictionary<string, object> Get
320320
return new System.Collections.Generic.Dictionary<string, object>();
321321
}
322322

323-
[System.Runtime.Versioning.RequiresPreviewFeaturesAttribute("RefreshMemoryLimit is in preview.")]
324323
public static void RefreshMemoryLimit()
325324
{
326325
throw new PlatformNotSupportedException();

0 commit comments

Comments
 (0)