As an American, I had to correct the spelling of 'independent'
This commit is contained in:
parent
de668c2ebd
commit
3db95ddcde
|
|
@ -6,7 +6,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Block tracking object used by the byte buffer memory pool. A slab is a large allocation which is divided into smaller blocks. The
|
/// Block tracking object used by the byte buffer memory pool. A slab is a large allocation which is divided into smaller blocks. The
|
||||||
/// individual blocks are then treated as independant array segments.
|
/// individual blocks are then treated as independent array segments.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class MemoryPoolBlock
|
public class MemoryPoolBlock
|
||||||
{
|
{
|
||||||
|
|
@ -65,7 +65,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Reference to the next block of data when the overall "active" bytes spans multiple blocks. At the point when the block is
|
/// Reference to the next block of data when the overall "active" bytes spans multiple blocks. At the point when the block is
|
||||||
/// leased Next is guaranteed to be null. Start, End, and Next are used together in order to create a linked-list of discontiguous
|
/// leased Next is guaranteed to be null. Start, End, and Next are used together in order to create a linked-list of discontinuous
|
||||||
/// working memory. The "active" memory is grown when bytes are copied in, End is increased, and Next is assigned. The "active"
|
/// working memory. The "active" memory is grown when bytes are copied in, End is increased, and Next is assigned. The "active"
|
||||||
/// memory is shrunk when bytes are consumed, Start is increased, and blocks are returned to the pool.
|
/// memory is shrunk when bytes are consumed, Start is increased, and blocks are returned to the pool.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Slab tracking object used by the byte buffer memory pool. A slab is a large allocation which is divided into smaller blocks. The
|
/// Slab tracking object used by the byte buffer memory pool. A slab is a large allocation which is divided into smaller blocks. The
|
||||||
/// individual blocks are then treated as independant array segments.
|
/// individual blocks are then treated as independent array segments.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class MemoryPoolSlab : IDisposable
|
public class MemoryPoolSlab : IDisposable
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure
|
||||||
public static Task<int> GetCancelledZeroTask(CancellationToken cancellationToken = default(CancellationToken))
|
public static Task<int> GetCancelledZeroTask(CancellationToken cancellationToken = default(CancellationToken))
|
||||||
{
|
{
|
||||||
#if NETSTANDARD1_3
|
#if NETSTANDARD1_3
|
||||||
// Make sure cancellationToken is cancelled before passing to Task.FromCanceled
|
// Make sure cancellationToken is canceled before passing to Task.FromCanceled
|
||||||
if (!cancellationToken.IsCancellationRequested)
|
if (!cancellationToken.IsCancellationRequested)
|
||||||
{
|
{
|
||||||
cancellationToken = new CancellationToken(true);
|
cancellationToken = new CancellationToken(true);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue