Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update src/libraries/System.IO.Pipelines/src/System/IO/Pipelines/Pipe.cs
  • Loading branch information
halter73 authored Dec 6, 2022
commit 332c8f699d9b70e81ccf2a2a48d2edc02f27fe2b
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,8 @@ private void AdvanceReader(BufferSegment? consumedSegment, int consumedIndex, Bu

Debug.Assert(_unconsumedBytes >= 0, "Length has gone negative");

// ResumeWriterThreshold is always at least 1
Debug.Assert(ResumeWriterThreshold >= 1);

if (oldLength >= ResumeWriterThreshold &&
_unconsumedBytes < ResumeWriterThreshold)
{
Expand Down