Skip to content

Commit

Permalink
Remove extraneous quotation marks and other doc fixes (#89528)
Browse files Browse the repository at this point in the history
* Remove extraneous quotation marks

* Update GC.CoreCLR.cs
  • Loading branch information
gewarren authored Jul 28, 2023
1 parent 3deb889 commit e5efd80
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions src/coreclr/System.Private.CoreLib/src/System/GC.CoreCLR.cs
Original file line number Diff line number Diff line change
Expand Up @@ -638,20 +638,21 @@ internal enum EnableNoGCRegionCallbackStatus
}

/// <summary>
/// Register a callback to be invoked when we allocated a certain amount of memory in the no GC region.
/// <param name="totalSize">The total size of the no GC region. Must be a number > 0 or an ArgumentOutOfRangeException will be thrown.</param>
/// <param name="callback">The callback to be executed when we allocated a certain amount of memory in the no GC region..</param>
/// <exception cref="ArgumentOutOfRangeException"> The <paramref name="totalSize"/> argument is less than or equal to 0.</exception>
/// Registers a callback to be invoked when a certain amount of memory is allocated in the no GC region.
/// </summary>
/// <param name="totalSize">The total size of the no GC region.</param>
/// <param name="callback">The callback to be executed.</param>
/// <exception cref="ArgumentOutOfRangeException">
/// <paramref name="totalSize"/> is less than or equal to 0.</exception>
/// <exception cref="ArgumentNullException">The <paramref name="callback"/> argument is null.</exception>
/// <exception cref="InvalidOperationException"><para>The GC is not currently under a NoGC region.</para>
/// <exception cref="InvalidOperationException"><para>The GC is not currently under a no GC region.</para>
/// <para>-or-</para>
/// <para>Another callback is already registered.</para>
/// <para>-or-</para>
/// <para>The <paramref name="totalSize"/> exceeds the size of the No GC region.</para>
/// <para><paramref name="totalSize"/> exceeds the size of the no GC region.</para>
/// <para>-or-</para>
/// <para>We failed to withheld memory for the callback before of already made allocation.</para>
/// <para>The operation to withold memory for the callback failed.</para>
/// </exception>
/// </summary>
public static unsafe void RegisterNoGCRegionCallback(long totalSize, Action callback)
{
ArgumentOutOfRangeException.ThrowIfNegativeOrZero(totalSize);
Expand Down Expand Up @@ -904,8 +905,8 @@ internal enum RefreshMemoryStatus
///
/// As of now, this API is feature preview only and subject to changes as necessary.
///
/// <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>"
/// <exception cref="InvalidOperationException">If the hard limit is invalid. This can happen, for example, with negative heap hard limit percentages.</exception>"
/// <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>
/// <exception cref="InvalidOperationException">If the hard limit is invalid. This can happen, for example, with negative heap hard limit percentages.</exception>
///
/// </summary>
[RequiresPreviewFeatures("RefreshMemoryLimit is in preview.")]
Expand Down

0 comments on commit e5efd80

Please sign in to comment.