diff --git a/lib/Common/Memory/PageAllocator.cpp b/lib/Common/Memory/PageAllocator.cpp index 6be426ea568..af93aa8ea4d 100644 --- a/lib/Common/Memory/PageAllocator.cpp +++ b/lib/Common/Memory/PageAllocator.cpp @@ -2519,7 +2519,8 @@ PageAllocatorBase::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;