File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -472,7 +472,9 @@ SmallHeapBlockT<TBlockAttributes>::ReleasePagesShutdown(Recycler * recycler)
472
472
473
473
// Don't release the page in shut down, the page allocator will release them faster
474
474
// Leaf block's allocator need not be closed
475
- Assert (this ->IsLeafBlock () || this ->GetPageAllocator ()->IsClosed ());
475
+ // For non-large normal heap blocks ReleasePagesShutdown could be called during shutdown cleanup when the block is still pending concurrent
476
+ // sweep i.e. it resides in the pendingSweepList of the RecyclerSweep instance. In this case the page allocator may not have been closed yet.
477
+ Assert (this ->IsLeafBlock () || this ->GetPageAllocator ()->IsClosed () || this ->isPendingConcurrentSweep );
476
478
#endif
477
479
478
480
}
You can’t perform that action at this time.
0 commit comments