From: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
Date: Fri, 28 Jul 2023 02:45:53 +0000 (-0700)
Subject: Remove extraneous quotation marks and other doc fixes (#89528)
X-Git-Tag: accepted/tizen/unified/riscv/20231226.055536~717
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e5efd8010e19593298dc2c3ee15106d5aec5a924;p=platform%2Fupstream%2Fdotnet%2Fruntime.git
Remove extraneous quotation marks and other doc fixes (#89528)
* Remove extraneous quotation marks
* Update GC.CoreCLR.cs
---
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 d59ad13..482e5c9 100644
--- a/src/coreclr/System.Private.CoreLib/src/System/GC.CoreCLR.cs
+++ b/src/coreclr/System.Private.CoreLib/src/System/GC.CoreCLR.cs
@@ -638,20 +638,21 @@ namespace System
}
///
- /// Register a callback to be invoked when we allocated a certain amount of memory in the no GC region.
- /// The total size of the no GC region. Must be a number > 0 or an ArgumentOutOfRangeException will be thrown.
- /// The callback to be executed when we allocated a certain amount of memory in the no GC region..
- /// The argument is less than or equal to 0.
+ /// Registers a callback to be invoked when a certain amount of memory is allocated in the no GC region.
+ ///
+ /// The total size of the no GC region.
+ /// The callback to be executed.
+ ///
+ /// is less than or equal to 0.
/// The argument is null.
- /// The GC is not currently under a NoGC region.
+ /// The GC is not currently under a no GC region.
/// -or-
/// Another callback is already registered.
/// -or-
- /// The exceeds the size of the No GC region.
+ /// exceeds the size of the no GC region.
/// -or-
- /// We failed to withheld memory for the callback before of already made allocation.
+ /// The operation to withold memory for the callback failed.
///
- ///
public static unsafe void RegisterNoGCRegionCallback(long totalSize, Action callback)
{
ArgumentOutOfRangeException.ThrowIfNegativeOrZero(totalSize);
@@ -904,8 +905,8 @@ namespace System
///
/// As of now, this API is feature preview only and subject to changes as necessary.
///
- /// 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."
- /// If the hard limit is invalid. This can happen, for example, with negative heap hard limit percentages."
+ /// 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.
+ /// If the hard limit is invalid. This can happen, for example, with negative heap hard limit percentages.
///
///
[RequiresPreviewFeatures("RefreshMemoryLimit is in preview.")]