Skip to content

Commit

Permalink
[MERGE #5345 @atulkatti] MSFT:17960528 In case we back-off from IdleD…
Browse files Browse the repository at this point in the history
…ecommit we may still have pages in BG zero page queue.

Merge pull request #5345 from atulkatti:FixIdleDecommitCheckAssert.1
  • Loading branch information
atulkatti committed Jun 21, 2018
2 parents 8357c52 + 346968f commit 9e876e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Common/Memory/PageAllocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2519,7 +2519,8 @@ PageAllocatorBase<TVirtualAlloc, TSegment, TPageSegment>::Check()
#if ENABLE_BACKGROUND_PAGE_ZEROING
if (CONFIG_FLAG(EnableBGFreeZero))
{
Assert(!this->HasZeroQueuedPages());
// We may have backed-off from the idle decommit on the background thread.
Assert(!this->HasZeroQueuedPages() || this->waitingToEnterIdleDecommit);
}
#endif
size_t currentFreePageCount = 0;
Expand Down

0 comments on commit 9e876e0

Please sign in to comment.