Skip to content

Commit e5efd80

Browse files
authored
Remove extraneous quotation marks and other doc fixes (#89528)
* Remove extraneous quotation marks * Update GC.CoreCLR.cs
1 parent 3deb889 commit e5efd80

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

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

+11-10
Original file line numberDiff line numberDiff line change
@@ -638,20 +638,21 @@ internal enum EnableNoGCRegionCallbackStatus
638638
}
639639

640640
/// <summary>
641-
/// Register a callback to be invoked when we allocated a certain amount of memory in the no GC region.
642-
/// <param name="totalSize">The total size of the no GC region. Must be a number > 0 or an ArgumentOutOfRangeException will be thrown.</param>
643-
/// <param name="callback">The callback to be executed when we allocated a certain amount of memory in the no GC region..</param>
644-
/// <exception cref="ArgumentOutOfRangeException"> The <paramref name="totalSize"/> argument is less than or equal to 0.</exception>
641+
/// Registers a callback to be invoked when a certain amount of memory is allocated in the no GC region.
642+
/// </summary>
643+
/// <param name="totalSize">The total size of the no GC region.</param>
644+
/// <param name="callback">The callback to be executed.</param>
645+
/// <exception cref="ArgumentOutOfRangeException">
646+
/// <paramref name="totalSize"/> is less than or equal to 0.</exception>
645647
/// <exception cref="ArgumentNullException">The <paramref name="callback"/> argument is null.</exception>
646-
/// <exception cref="InvalidOperationException"><para>The GC is not currently under a NoGC region.</para>
648+
/// <exception cref="InvalidOperationException"><para>The GC is not currently under a no GC region.</para>
647649
/// <para>-or-</para>
648650
/// <para>Another callback is already registered.</para>
649651
/// <para>-or-</para>
650-
/// <para>The <paramref name="totalSize"/> exceeds the size of the No GC region.</para>
652+
/// <para><paramref name="totalSize"/> exceeds the size of the no GC region.</para>
651653
/// <para>-or-</para>
652-
/// <para>We failed to withheld memory for the callback before of already made allocation.</para>
654+
/// <para>The operation to withold memory for the callback failed.</para>
653655
/// </exception>
654-
/// </summary>
655656
public static unsafe void RegisterNoGCRegionCallback(long totalSize, Action callback)
656657
{
657658
ArgumentOutOfRangeException.ThrowIfNegativeOrZero(totalSize);
@@ -904,8 +905,8 @@ internal enum RefreshMemoryStatus
904905
///
905906
/// As of now, this API is feature preview only and subject to changes as necessary.
906907
///
907-
/// <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>"
908-
/// <exception cref="InvalidOperationException">If the hard limit is invalid. This can happen, for example, with negative heap hard limit percentages.</exception>"
908+
/// <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>
909+
/// <exception cref="InvalidOperationException">If the hard limit is invalid. This can happen, for example, with negative heap hard limit percentages.</exception>
909910
///
910911
/// </summary>
911912
[RequiresPreviewFeatures("RefreshMemoryLimit is in preview.")]

0 commit comments

Comments
 (0)