Skip to content

Commit 9e876e0

Browse files
committed
[MERGE #5345 @atulkatti] MSFT:17960528 In case we back-off from IdleDecommit we may still have pages in BG zero page queue.
Merge pull request #5345 from atulkatti:FixIdleDecommitCheckAssert.1
2 parents 8357c52 + 346968f commit 9e876e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Common/Memory/PageAllocator.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2519,7 +2519,8 @@ PageAllocatorBase<TVirtualAlloc, TSegment, TPageSegment>::Check()
25192519
#if ENABLE_BACKGROUND_PAGE_ZEROING
25202520
if (CONFIG_FLAG(EnableBGFreeZero))
25212521
{
2522-
Assert(!this->HasZeroQueuedPages());
2522+
// We may have backed-off from the idle decommit on the background thread.
2523+
Assert(!this->HasZeroQueuedPages() || this->waitingToEnterIdleDecommit);
25232524
}
25242525
#endif
25252526
size_t currentFreePageCount = 0;

0 commit comments

Comments
 (0)